Browse Source

Added failing test for inclusion of internally used default export

legacy-quote-reserved-properties
Permutator 8 years ago
parent
commit
7f61f5c754
No known key found for this signature in database GPG Key ID: 763F7A2F18CAB33E
  1. 3
      test/function/includes-internally-used-default-export/_config.js
  2. 3
      test/function/includes-internally-used-default-export/main.js
  3. 7
      test/function/includes-internally-used-default-export/module.js

3
test/function/includes-internally-used-default-export/_config.js

@ -0,0 +1,3 @@
module.exports = {
description: 'includes default exports that are only used internally'
};

3
test/function/includes-internally-used-default-export/main.js

@ -0,0 +1,3 @@
import { b } from './module.js';
assert.equal(b(), 15);

7
test/function/includes-internally-used-default-export/module.js

@ -0,0 +1,7 @@
export default function a() {
return 5;
}
export function b() {
return a() + 10;
}
Loading…
Cancel
Save