diff options
Diffstat (limited to 'tests/wpt/runner/utils.ts')
-rw-r--r-- | tests/wpt/runner/utils.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/wpt/runner/utils.ts b/tests/wpt/runner/utils.ts index 47f980833..52b95eefe 100644 --- a/tests/wpt/runner/utils.ts +++ b/tests/wpt/runner/utils.ts @@ -79,7 +79,7 @@ export function getManifest(): Manifest { const EXPECTATION_PATH = join(ROOT_PATH, "./tests/wpt/runner/expectation.json"); export interface Expectation { - [key: string]: Expectation | boolean | string[]; + [key: string]: Expectation | boolean | string[] | { ignore: boolean }; } export function getExpectation(): Expectation { @@ -90,7 +90,7 @@ export function getExpectation(): Expectation { export function saveExpectation(expectation: Expectation) { Deno.writeTextFileSync( EXPECTATION_PATH, - JSON.stringify(expectation, undefined, " "), + JSON.stringify(expectation, undefined, " ") + "\n", ); } @@ -99,7 +99,7 @@ export function getExpectFailForCase( caseName: string, ): boolean { if (noIgnore) return false; - if (typeof expectation == "boolean") { + if (typeof expectation === "boolean") { return !expectation; } return expectation.includes(caseName); |