mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Update Jasmine to version 4
For the unit-tests that were updated in this patch, note that I settled on simply using `toEqual` comparisons rather than updating the custom matchers (since those don't seem necessary any more). Please refer to the following resources for additional information: - https://github.com/jasmine/jasmine/blob/main/release_notes/4.0.0.md - https://github.com/jasmine/jasmine-npm/blob/main/release_notes/4.0.0.md - https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0
This commit is contained in:
parent
38e574f1d5
commit
457ff0d54a
5 changed files with 89 additions and 171 deletions
|
@ -19,6 +19,7 @@ const Jasmine = require("jasmine");
|
|||
|
||||
async function runTests(results) {
|
||||
const jasmine = new Jasmine();
|
||||
jasmine.exitOnCompletion = false;
|
||||
jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
|
||||
|
||||
jasmine.loadConfig({
|
||||
|
@ -49,10 +50,7 @@ async function runTests(results) {
|
|||
suiteStarted(result) {},
|
||||
});
|
||||
|
||||
return new Promise(resolve => {
|
||||
jasmine.onComplete(resolve);
|
||||
jasmine.execute();
|
||||
});
|
||||
return jasmine.execute();
|
||||
}
|
||||
|
||||
exports.runTests = runTests;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue