fix: update dependencies
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import path from 'path';
|
||||
import {
|
||||
expect
|
||||
expect,
|
||||
} from 'chai';
|
||||
import readDirectory from '../src/utilities/readDirectory';
|
||||
|
||||
@@ -71,7 +71,7 @@ describe('readDirectory()', () => {
|
||||
});
|
||||
context('target directory contains non js files, and allowing only jsx', () => {
|
||||
it('prefers file', () => {
|
||||
const options = { extensions: ['jsx'] };
|
||||
const options = {extensions: ['jsx']};
|
||||
const names = readDirectory(path.resolve(fixturesPath, 'children-files-alt-extension'), options);
|
||||
|
||||
expect(names).to.deep.equal(['bar.jsx']);
|
||||
@@ -79,7 +79,7 @@ describe('readDirectory()', () => {
|
||||
});
|
||||
context('target directory contains non js files, and allowing both js and jsx', () => {
|
||||
it('prefers file', () => {
|
||||
const options = { extensions: ['js', 'jsx'] };
|
||||
const options = {extensions: ['js', 'jsx']};
|
||||
const names = readDirectory(path.resolve(fixturesPath, 'children-files-alt-extension'), options);
|
||||
|
||||
expect(names).to.deep.equal(['bar.jsx', 'present.js']);
|
||||
@@ -87,7 +87,7 @@ describe('readDirectory()', () => {
|
||||
});
|
||||
context('target directory contains homonyms files, and allowing both js and jsx, will prefer JS as it is first extension listed', () => {
|
||||
it('prefers file', () => {
|
||||
const options = { extensions: ['js', 'jsx'] };
|
||||
const options = {extensions: ['js', 'jsx']};
|
||||
const names = readDirectory(path.resolve(fixturesPath, 'children-files-alt-extension-with-homonyms'), options);
|
||||
|
||||
expect(names).to.deep.equal(['bar.js', 'present.js']);
|
||||
@@ -95,7 +95,7 @@ describe('readDirectory()', () => {
|
||||
});
|
||||
context('target directory contains homonyms files, and allowing both js and jsx, will prefer JSX as it is first extension listed', () => {
|
||||
it('prefers file', () => {
|
||||
const options = { extensions: ['jsx', 'js'] };
|
||||
const options = {extensions: ['jsx', 'js']};
|
||||
const names = readDirectory(path.resolve(fixturesPath, 'children-files-alt-extension-with-homonyms'), options);
|
||||
|
||||
expect(names).to.deep.equal(['bar.jsx', 'present.js']);
|
||||
|
||||
Reference in New Issue
Block a user