Skip to content

Commit aff29fe

Browse files
committed
run prettier across the codebase
1 parent 883f127 commit aff29fe

File tree

5 files changed

+28
-15
lines changed

5 files changed

+28
-15
lines changed

test/ConfigTestCases.test.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,19 @@ describe("ConfigTestCases", () => {
244244
if (exportedTests.length < filesCount)
245245
return done(new Error("No tests exported by test case"));
246246

247-
describe("exported tests", () => {
247+
const asyncSuite = describe("exported tests", () => {
248248
exportedTests.forEach(
249249
({ title, fn, timeout }) =>
250-
fn ? it(title, fn, timeout) : it.skip(title, () => {})
250+
fn
251+
? fit(title, fn, timeout)
252+
: fit(title, () => {}).pend("Skipped")
251253
);
252-
done();
253254
});
255+
256+
jasmine
257+
.getEnv()
258+
.execute([asyncSuite.id], asyncSuite)
259+
.then(done, done);
254260
});
255261
})
256262
);

test/Schemas.lint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ describe("Schemas", () => {
119119
}
120120
if ("properties" in item) {
121121
it("should have additionalProperties set to some value when describing properties", () => {
122-
expect(item. additionalProperties).toBeDefined();
122+
expect(item.additionalProperties).toBeDefined();
123123
});
124124
Object.keys(item.properties).forEach(name => {
125125
describe(`> '${name}'`, () => {

test/StatsTestCases.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ describe("StatsTestCases", () => {
2929
}
3030
};
3131
if (fs.existsSync(path.join(base, testName, "webpack.config.js"))) {
32-
options = require(
33-
path.join(base, testName, "webpack.config.js")
34-
);
32+
options = require(path.join(base, testName, "webpack.config.js"));
3533
}
3634
(Array.isArray(options) ? options : [options]).forEach(options => {
3735
if (!options.context) options.context = path.join(base, testName);

test/TestCases.template.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,19 @@ const describeCases = config => {
233233
if (exportedTests.length === 0)
234234
throw new Error("No tests exported by test case");
235235

236-
describe("exported tests", () => {
236+
const asyncSuite = describe("exported tests", () => {
237237
exportedTests.forEach(
238238
({ title, fn, timeout }) =>
239-
fn ? it(title, fn, timeout) : it.skip(title, () => {})
239+
fn
240+
? fit(title, fn, timeout)
241+
: fit(title, () => {}).pend("Skipped")
240242
);
241-
done();
242243
});
244+
245+
jasmine
246+
.getEnv()
247+
.execute([asyncSuite.id], asyncSuite)
248+
.then(done, done);
243249
});
244250
},
245251
40000

test/WatchTestCases.test.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const fs = require("fs");
66
const vm = require("vm");
77
const mkdirp = require("mkdirp");
88
const checkArrayExpectation = require("./checkArrayExpectation");
9-
const {remove} = require("./helpers/remove");
9+
const { remove } = require("./helpers/remove");
1010

1111
const Stats = require("../lib/Stats");
1212
const webpack = require("../lib/webpack");
@@ -298,16 +298,19 @@ describe("WatchTestCases", () => {
298298
} else {
299299
watching.close();
300300

301-
describe("exported tests", () => {
301+
const asyncSuite = describe("exported tests", () => {
302302
exportedTests.forEach(
303303
({ title, fn, timeout }) =>
304304
fn
305-
? it(title, fn, timeout)
306-
: it.skip(title, () => {})
305+
? fit(title, fn, timeout)
306+
: fit(title, () => {}).pend("Skipped")
307307
);
308308
});
309309

310-
process.nextTick(done);
310+
jasmine
311+
.getEnv()
312+
.execute([asyncSuite.id], asyncSuite)
313+
.then(done, done);
311314
}
312315
}
313316
);

0 commit comments

Comments
 (0)