chore: move ./fixtures folder under ./tests

This commit is contained in:
Gajus Kuizinas
2016-11-01 15:30:04 +00:00
parent 335152f0d4
commit 78109764f7
41 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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');