Browse Source

Changed shorthand properties test

gh-109
Oskar Segersvärd 10 years ago
parent
commit
ab8fc095aa
  1. 3
      test/function/shorthand-properties/baz.js
  2. 5
      test/function/shorthand-properties/foo.js
  3. 5
      test/function/shorthand-properties/main.js

3
test/function/shorthand-properties/baz.js

@ -0,0 +1,3 @@
export default function bar () {
return 'main-bar';
}

5
test/function/shorthand-properties/foo.js

@ -1,7 +1,10 @@
import baz from './baz.js';
function bar () {
return 'foo-bar';
}
export var foo = {
bar
bar,
baz
};

5
test/function/shorthand-properties/main.js

@ -1,8 +1,5 @@
import bar from './baz.js';
import { foo } from './foo';
function bar () {
return 'main-bar';
}
assert.equal( bar(), 'main-bar' );
assert.equal( foo.bar(), 'foo-bar' );

Loading…
Cancel
Save