Browse Source

Added tests

gh-109
Oskar Segersvärd 9 years ago
parent
commit
886e6f7edc
  1. 7
      test/form/export-all-from-internal/_config.js
  2. 9
      test/form/export-all-from-internal/_expected/amd.js
  3. 7
      test/form/export-all-from-internal/_expected/cjs.js
  4. 4
      test/form/export-all-from-internal/_expected/es6.js
  5. 9
      test/form/export-all-from-internal/_expected/iife.js
  6. 13
      test/form/export-all-from-internal/_expected/umd.js
  7. 2
      test/form/export-all-from-internal/internal.js
  8. 1
      test/form/export-all-from-internal/main.js

7
test/form/export-all-from-internal/_config.js

@ -0,0 +1,7 @@
module.exports = {
// solo: true,
description: 'should be able to export * from the bundle',
options: {
moduleName: 'exposedInternals'
}
};

9
test/form/export-all-from-internal/_expected/amd.js

@ -0,0 +1,9 @@
define(['exports'], function (exports) { 'use strict';
const a = 1;
const b = 2;
exports.a = a;
exports.b = b;
});

7
test/form/export-all-from-internal/_expected/cjs.js

@ -0,0 +1,7 @@
'use strict';
const a = 1;
const b = 2;
exports.a = a;
exports.b = b;

4
test/form/export-all-from-internal/_expected/es6.js

@ -0,0 +1,4 @@
const a = 1;
const b = 2;
export { a, b };

9
test/form/export-all-from-internal/_expected/iife.js

@ -0,0 +1,9 @@
(function (exports) { 'use strict';
const a = 1;
const b = 2;
exports.a = a;
exports.b = b;
})((this.exposedInternals = {}));

13
test/form/export-all-from-internal/_expected/umd.js

@ -0,0 +1,13 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
factory((global.exposedInternals = {}));
}(this, function (exports) { 'use strict';
const a = 1;
const b = 2;
exports.a = a;
exports.b = b;
}));

2
test/form/export-all-from-internal/internal.js

@ -0,0 +1,2 @@
export const a = 1;
export const b = 2;

1
test/form/export-all-from-internal/main.js

@ -0,0 +1 @@
export * from './internal.js';
Loading…
Cancel
Save