chore: move ./fixtures folder under ./tests
This commit is contained in:
@@ -14,6 +14,6 @@ describe('findIndexFiles()', () => {
|
||||
names = findIndexFiles(path.resolve(fixturesPath));
|
||||
names = names.sort();
|
||||
|
||||
expect(names).to.deep.equal(glob.sync(path.resolve(fixturesPath, './**/find-*')));
|
||||
expect(names).to.deep.equal(glob.sync(path.resolve(fixturesPath, '**/find-*')));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
// 'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
// 'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
+1
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
+1
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
+1
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
@@ -0,0 +1 @@
|
||||
'create index';
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
'create index';
|
||||
|
||||
export bar from './bar';
|
||||
export foo from './foo.js';
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
} from 'chai';
|
||||
import readDirectory from '../src/utilities/readDirectory';
|
||||
|
||||
const fixturesPath = path.resolve(__dirname, '../fixtures/read-directory');
|
||||
const fixturesPath = path.resolve(__dirname, 'fixtures/read-directory');
|
||||
|
||||
describe('readDirectory()', () => {
|
||||
context('target directory contains child directories', () => {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
} from 'chai';
|
||||
import validateTargetDirectory from '../src/utilities/validateTargetDirectory';
|
||||
|
||||
const fixturesPath = path.resolve(__dirname, '../fixtures/validate-target-directory');
|
||||
const fixturesPath = path.resolve(__dirname, 'fixtures/validate-target-directory');
|
||||
|
||||
describe('validateTargetDirectory()', () => {
|
||||
describe('directory path', () => {
|
||||
|
||||
+3
-3
@@ -8,11 +8,11 @@ import {
|
||||
import writeIndex from '../src/utilities/writeIndex';
|
||||
import codeExample from './codeExample';
|
||||
|
||||
const fixturesPath = path.resolve(__dirname, '../fixtures/write-index');
|
||||
const fixturesPath = path.resolve(__dirname, 'fixtures/write-index');
|
||||
|
||||
describe('writeIndex()', () => {
|
||||
it('creates index in target directory', () => {
|
||||
const indexFilePath = path.resolve(fixturesPath, './mixed/index.js');
|
||||
const indexFilePath = path.resolve(fixturesPath, 'mixed/index.js');
|
||||
|
||||
try {
|
||||
fs.unlinkSync(indexFilePath);
|
||||
@@ -22,7 +22,7 @@ describe('writeIndex()', () => {
|
||||
|
||||
}
|
||||
|
||||
writeIndex([path.resolve(fixturesPath, './mixed')]);
|
||||
writeIndex([path.resolve(fixturesPath, 'mixed')]);
|
||||
|
||||
const indexCode = fs.readFileSync(indexFilePath, 'utf8');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user