Skip to content

Commit

Permalink
fixup test description, form test
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Apr 1, 2020
1 parent 1305abb commit 48fff90
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
6 changes: 6 additions & 0 deletions test/form/samples/ns-external-star-reexport/_config.js
@@ -0,0 +1,6 @@
module.exports = {
description: 'supports namespace external star reexports',
options: {
external: ['external-ns-1', 'external-ns-2'],
},
};
12 changes: 12 additions & 0 deletions test/form/samples/ns-external-star-reexport/_expected/amd.js
@@ -0,0 +1,12 @@
define(['external-ns-1', 'external-ns-2'], function (externalNs1, externalNs2) { 'use strict';

const val = 5;

var ns = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(externalNs1, externalNs2, {
__proto__: null,
val: val
}));

return ns;

});
3 changes: 3 additions & 0 deletions test/form/samples/ns-external-star-reexport/dep.js
@@ -0,0 +1,3 @@
export * from 'external-ns-1';
export * from 'external-ns-2';
export const val = 5;
3 changes: 3 additions & 0 deletions test/form/samples/ns-external-star-reexport/main.js
@@ -0,0 +1,3 @@
import * as ns from './dep.js';

export default ns;
Expand Up @@ -2,8 +2,7 @@ const assert = require('assert');
const fs = require('fs');

module.exports = {
description:
'fails with a helpful error if creating a namespace object containing a reexported external namespace',
description: 'supports namespaces with external star reexports',
options: {
external: ['fs'],
},
Expand Down

0 comments on commit 48fff90

Please sign in to comment.