Change the index file format to use "export ... from" (fixes #3)

This commit is contained in:
Gajus Kuizinas
2016-01-29 09:40:35 +00:00
parent 832044c9fd
commit 69825b59c6
14 changed files with 35 additions and 68 deletions
+3 -8
View File
@@ -6,7 +6,7 @@ import {
import fs from 'fs';
import path from 'path';
import codeExample from './codeExample';
import writeIndex from './../src/writeIndex';
import writeIndex from './../src/utilities/writeIndex';
const fixturesPath = path.resolve(__dirname, './fixtures/write-index');
@@ -30,13 +30,8 @@ describe('writeIndex()', () => {
expect(indexCode).to.equal(codeExample(`
'create index';
import bar from './bar';
import foo from './foo.js';
export {
bar,
foo
};
export bar from './bar';
export foo from './foo.js';
`));
});
});