Browse Source

Add failing test cases for #339

gh-335
Oskar Segersvärd 9 years ago
parent
commit
cd9a0b48a5
  1. 6
      test/form/export-default-2/_config.js
  2. 7
      test/form/export-default-2/_expected/amd.js
  3. 5
      test/form/export-default-2/_expected/cjs.js
  4. 3
      test/form/export-default-2/_expected/es6.js
  5. 7
      test/form/export-default-2/_expected/iife.js
  6. 11
      test/form/export-default-2/_expected/umd.js
  7. 3
      test/form/export-default-2/bar.js
  8. 1
      test/form/export-default-2/main.js
  9. 6
      test/form/export-default-3/_config.js
  10. 7
      test/form/export-default-3/_expected/amd.js
  11. 5
      test/form/export-default-3/_expected/cjs.js
  12. 3
      test/form/export-default-3/_expected/es6.js
  13. 7
      test/form/export-default-3/_expected/iife.js
  14. 11
      test/form/export-default-3/_expected/umd.js
  15. 3
      test/form/export-default-3/bar.js
  16. 3
      test/form/export-default-3/main.js

6
test/form/export-default-2/_config.js

@ -0,0 +1,6 @@
module.exports = {
description: 're-exporting a default export',
options: {
moduleName: 'myBundle'
}
};

7
test/form/export-default-2/_expected/amd.js

@ -0,0 +1,7 @@
define(function () { 'use strict';
var bar = 1;
return bar;
});

5
test/form/export-default-2/_expected/cjs.js

@ -0,0 +1,5 @@
'use strict';
var bar = 1;
module.exports = bar;

3
test/form/export-default-2/_expected/es6.js

@ -0,0 +1,3 @@
var bar = 1;
export default bar;

7
test/form/export-default-2/_expected/iife.js

@ -0,0 +1,7 @@
var myBundle = (function () { 'use strict';
var bar = 1;
return bar;
})();

11
test/form/export-default-2/_expected/umd.js

@ -0,0 +1,11 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
global.myBundle = factory();
}(this, function () { 'use strict';
var bar = 1;
return bar;
}));

3
test/form/export-default-2/bar.js

@ -0,0 +1,3 @@
var bar = 1;
export default bar;

1
test/form/export-default-2/main.js

@ -0,0 +1 @@
export { default as default } from './bar.js';

6
test/form/export-default-3/_config.js

@ -0,0 +1,6 @@
module.exports = {
description: 're-exporting a default export',
options: {
moduleName: 'myBundle'
}
};

7
test/form/export-default-3/_expected/amd.js

@ -0,0 +1,7 @@
define(function () { 'use strict';
var bar = 1;
return bar;
});

5
test/form/export-default-3/_expected/cjs.js

@ -0,0 +1,5 @@
'use strict';
var bar = 1;
module.exports = bar;

3
test/form/export-default-3/_expected/es6.js

@ -0,0 +1,3 @@
var bar = 1;
export default bar;

7
test/form/export-default-3/_expected/iife.js

@ -0,0 +1,7 @@
var myBundle = (function () { 'use strict';
var bar = 1;
return bar;
})();

11
test/form/export-default-3/_expected/umd.js

@ -0,0 +1,11 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
global.myBundle = factory();
}(this, function () { 'use strict';
var bar = 1;
return bar;
}));

3
test/form/export-default-3/bar.js

@ -0,0 +1,3 @@
var bar = 1;
export default bar;

3
test/form/export-default-3/main.js

@ -0,0 +1,3 @@
import foo from './bar.js';
export default foo;
Loading…
Cancel
Save