Skip to content

Commit f5310c1

Browse files
committed
Small cleanup
1 parent 371753b commit f5310c1

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"make-tests": "node ./src/generateTests",
1212
"test": "nyc mocha './test/src/*.spec.js'",
1313
"test-all": "node src/runAllTests",
14-
"test-ava": " time ava './test/ava/*.spec.js'",
14+
"test-ava": "time ava './test/ava/*.spec.js'",
1515
"test-jest": "jest",
1616
"test-mocha": "mocha './test/mocha/*.spec.js'",
1717
"test-parallel": "mocha-parallel-tests './test/mocha/*.spec.js' --timeout=10000"

src/generateTests/generateTestFiles.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { promises: fsPromises } = require('fs');
22
const { range } = require('../range');
33
const { TEMPLATE_PATHS, TEST_RUNNERS } = require('./config');
44

5-
const getTestFilename = (num, testDir, testRunner) =>
5+
const createTestFilename = (num, testDir, testRunner) =>
66
`${testDir}/${testRunner}-fullCircle${num}.spec.js`;
77

88
// get testTemplate file as a string
@@ -15,7 +15,10 @@ const getTemplateFile = async templateFilePath =>
1515
const makeALotOfTestFiles = (template, testDir, testRunner) =>
1616
Promise.resolve(
1717
range(0, 50).map(num =>
18-
fsPromises.writeFile(getTestFilename(num, testDir, testRunner), template)
18+
fsPromises.writeFile(
19+
createTestFilename(num, testDir, testRunner),
20+
template
21+
)
1922
)
2023
);
2124

src/runAllTests.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ const main = () => {
9898

9999
console.log('running tests for', name, '\n. . . . . . . . ');
100100

101-
// eslint-disable-next-line no-await-in-loop
102101
testData[name].executionTime = run();
103102
testResults.push(testData[name]);
104103
}

0 commit comments

Comments
 (0)