diff --git a/types/jsdom/index.d.ts b/types/jsdom/index.d.ts index 4ef65a16cd615e..cf1c8a8312888d 100644 --- a/types/jsdom/index.d.ts +++ b/types/jsdom/index.d.ts @@ -186,7 +186,7 @@ export interface ResourcesOptions { interceptors?: Dispatcher.DispatcherComposeInterceptor[] | undefined; } -export interface DOMWindow extends Omit { +export interface DOMWindow extends Omit { [key: string]: any; [index: number]: any; diff --git a/types/jsdom/jsdom-tests.ts b/types/jsdom/jsdom-tests.ts index 72c06d22f3990c..fa55daff7a6a0a 100644 --- a/types/jsdom/jsdom-tests.ts +++ b/types/jsdom/jsdom-tests.ts @@ -24,6 +24,9 @@ domWindow.WebAssembly; // $ExpectType typeof WebAssembly domWindow.InputEvent.prototype; // $ExpectType InputEvent domWindow.external; // $ExpectType External +domWindow["Infinity"]; // $ExpectType number +domWindow["NaN"]; // $ExpectType number + domWindow.FinalizationRegistry; // $ExpectType FinalizationRegistryConstructor domWindow.WeakRef; // $ExpectType WeakRefConstructor diff --git a/types/qunit/index.d.ts b/types/qunit/index.d.ts index 53c68a6e7b911e..240fd60d1f62f1 100644 --- a/types/qunit/index.d.ts +++ b/types/qunit/index.d.ts @@ -593,7 +593,7 @@ declare global { } interface TodoFunction { - (name: string, callback?: TestFunctionCallback): void; + (name: string, callback: TestFunctionCallback): void; each: EachFunction; } diff --git a/types/qunit/test/global-test.ts b/types/qunit/test/global-test.ts index d85a3164108df5..2ccd392fbda7c1 100644 --- a/types/qunit/test/global-test.ts +++ b/types/qunit/test/global-test.ts @@ -21,8 +21,6 @@ QUnit.test.todo("todo test example", function(assert) { assert.ok(true, "this is a todo"); }); -QUnit.test.todo("todo test example w/o callback"); - QUnit.test.only("only test example", function(assert) { assert.ok(true, "only this is called"); }); diff --git a/types/qunit/test/module-test.ts b/types/qunit/test/module-test.ts index 6dd69decf66ca7..c6d485d9afafd9 100644 --- a/types/qunit/test/module-test.ts +++ b/types/qunit/test/module-test.ts @@ -17,8 +17,6 @@ QUnit.module("basic tests for importing QUnit", function(hooks) { assert.ok(true, "this is a todo"); }); - QUnit.test.todo("todo test example w/o callback"); - QUnit.test.only("only test example", function(assert) { assert.ok(true, "only this is called"); });