Browse Source

failing test for #575

gh-669
Rich-Harris 9 years ago
parent
commit
adfd0bf44c
  1. 4
      test/function/deshadowed-shorthand-property/_config.js
  2. 3
      test/function/deshadowed-shorthand-property/foo.js
  3. 8
      test/function/deshadowed-shorthand-property/main.js

4
test/function/deshadowed-shorthand-property/_config.js

@ -0,0 +1,4 @@
module.exports = {
solo: true,
description: 'shorthand properties referencing deshadowed variables are expanded'
};

3
test/function/deshadowed-shorthand-property/foo.js

@ -0,0 +1,3 @@
export default function answer () {
return 42;
}

8
test/function/deshadowed-shorthand-property/main.js

@ -0,0 +1,8 @@
import foo from './foo.js';
function x () {
const answer = foo();
return { answer };
}
assert.equal( x().answer, 42 );
Loading…
Cancel
Save