Browse Source

add failing test for #335

gh-335
Rich-Harris 9 years ago
parent
commit
c74b5e919d
  1. 5
      test/function/side-effect-import-order/_config.js
  2. 1
      test/function/side-effect-import-order/foo.js
  3. 4
      test/function/side-effect-import-order/main.js
  4. 1
      test/function/side-effect-import-order/polyfill.js

5
test/function/side-effect-import-order/_config.js

@ -0,0 +1,5 @@
module.exports = {
solo: true,
show: true,
description: 'imports side-effects in the right order (#335)'
};

1
test/function/side-effect-import-order/foo.js

@ -0,0 +1 @@
export default global.polyfilled ? 'polyfilled' : 'unpolyfilled';

4
test/function/side-effect-import-order/main.js

@ -0,0 +1,4 @@
import './polyfill.js';
import foo from './foo.js';
assert.equal( foo, 'polyfilled' );

1
test/function/side-effect-import-order/polyfill.js

@ -0,0 +1 @@
global.polyfilled = true;
Loading…
Cancel
Save