From ab8fc095aaba38eb7ff3378d7fd09e1747663527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Segersv=C3=A4rd?= Date: Thu, 10 Sep 2015 11:31:56 +0200 Subject: [PATCH] Changed shorthand properties test --- test/function/shorthand-properties/baz.js | 3 +++ test/function/shorthand-properties/foo.js | 5 ++++- test/function/shorthand-properties/main.js | 5 +---- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 test/function/shorthand-properties/baz.js diff --git a/test/function/shorthand-properties/baz.js b/test/function/shorthand-properties/baz.js new file mode 100644 index 0000000..d826bfa --- /dev/null +++ b/test/function/shorthand-properties/baz.js @@ -0,0 +1,3 @@ +export default function bar () { + return 'main-bar'; +} diff --git a/test/function/shorthand-properties/foo.js b/test/function/shorthand-properties/foo.js index 25941fc..831360e 100644 --- a/test/function/shorthand-properties/foo.js +++ b/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 }; diff --git a/test/function/shorthand-properties/main.js b/test/function/shorthand-properties/main.js index 5118a11..754fba8 100644 --- a/test/function/shorthand-properties/main.js +++ b/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' );