fix: correct all the references to @create-index
This commit is contained in:
@@ -11,14 +11,14 @@ describe('createIndexCode()', () => {
|
||||
const indexCode = createIndexCode([]);
|
||||
|
||||
expect(indexCode).to.equal(codeExample(`
|
||||
'create index';
|
||||
// @create-index
|
||||
`));
|
||||
});
|
||||
it('describes a single child', () => {
|
||||
const indexCode = createIndexCode(['foo']);
|
||||
|
||||
expect(indexCode).to.equal(codeExample(`
|
||||
'create index';
|
||||
// @create-index
|
||||
|
||||
export foo from './foo';
|
||||
`));
|
||||
@@ -27,7 +27,7 @@ export foo from './foo';
|
||||
const indexCode = createIndexCode(['bar', 'foo']);
|
||||
|
||||
expect(indexCode).to.equal(codeExample(`
|
||||
'create index';
|
||||
// @create-index
|
||||
|
||||
export bar from './bar';
|
||||
export foo from './foo';
|
||||
@@ -38,7 +38,7 @@ export foo from './foo';
|
||||
const indexCode = createIndexCode(['foo.js']);
|
||||
|
||||
expect(indexCode).to.equal(codeExample(`
|
||||
'create index';
|
||||
// @create-index
|
||||
|
||||
export foo from './foo.js';
|
||||
`));
|
||||
@@ -49,7 +49,7 @@ export foo from './foo.js';
|
||||
const indexCode = createIndexCode(['foo', 'bar']);
|
||||
|
||||
expect(indexCode).to.equal(codeExample(`
|
||||
'create index';
|
||||
// @create-index
|
||||
|
||||
export bar from './bar';
|
||||
export foo from './foo';
|
||||
|
||||
Reference in New Issue
Block a user