Skip to content

Commit 89b34b7

Browse files
committed
Clean up some of the unused test deps
1 parent 1ff7556 commit 89b34b7

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
lines changed

test/css-entry-array.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const webpack = require('webpack');
2-
const expect = require('chai').expect;
32
const path = require('path');
43
const rimraf = require('rimraf');
54
const options = require('./fixtures/css-array-entry/webpack.config.js');

test/js-file-entry.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const webpack = require('webpack');
2-
const chai = require('chai').expect;
32
const path = require('path');
43
const rimraf = require('rimraf');
54
const options = require('./fixtures/js-file-entry/webpack.config.js');

test/should-not-omit.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const webpack = require('webpack');
2-
const chai = require('chai').expect;
32
const path = require('path');
43
const rimraf = require('rimraf');
54
const fileShouldExist = require('./utils/file-should-exist.js');
@@ -14,7 +13,7 @@ const externalDirPath = path.join(__dirname, '/fixtures/should-not-omit/external
1413
const mixedOptions = require('./fixtures/should-not-omit/mixed-dep/webpack.config.js');
1514
const mixedDirPath = path.join(__dirname, '/fixtures/should-not-omit/mixed-dep/dir');
1615

17-
describe('JS dependencies that shouldnt be omitted', () => {
16+
describe('JS Dependencies that shouldn\'t be omitted', () => {
1817

1918
describe('Internal', () => {
2019

test/utils/file-should-exist.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
const chai = require('chai').expect;
1+
const expect = require('chai').expect;
22
const path = require('path');
33
const fs = require('fs');
44
/**
55
* @param dirPath {String} The directory path
66
* @param fileName {String} The filename
77
*/
88
module.exports = function(dirPath, fileName){
9-
chai(dirPath).to.be.a('string');
10-
chai(fileName).to.be.a('string');
9+
expect(dirPath).to.be.a('string');
10+
expect(fileName).to.be.a('string');
1111
const dirDirectoryExists = fs.existsSync(dirPath);
1212
const jsEntryFileExists = fs.existsSync(path.join(dirPath, fileName));
13-
chai(dirDirectoryExists).to.be.equal(true);
14-
chai(jsEntryFileExists).to.be.equal(true);
13+
expect(dirDirectoryExists).to.be.equal(true);
14+
expect(jsEntryFileExists).to.be.equal(true);
1515
};
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const chai = require('chai').expect;
1+
const expect = require('chai').expect;
22
const fs = require('fs');
33
const path = require('path');
44
/**
@@ -8,8 +8,8 @@ const path = require('path');
88
module.exports = function(dirPath, fileName){
99
const dirDirectoryExists = fs.existsSync(dirPath);
1010
const jsEntryFileExists = fs.existsSync(path.join(dirPath, fileName));
11-
chai(dirPath).to.be.a('string');
12-
chai(fileName).to.be.a('string');
13-
chai(dirDirectoryExists).to.be.equal(true);
14-
chai(jsEntryFileExists).to.be.equal(false);
11+
expect(dirPath).to.be.a('string');
12+
expect(fileName).to.be.a('string');
13+
expect(dirDirectoryExists).to.be.equal(true);
14+
expect(jsEntryFileExists).to.be.equal(false);
1515
};

0 commit comments

Comments
 (0)