Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/jsdom/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export interface ResourcesOptions {
interceptors?: Dispatcher.DispatcherComposeInterceptor[] | undefined;
}

export interface DOMWindow extends Omit<Window, "top" | "self" | "window"> {
export interface DOMWindow extends Omit<Window, "top" | "self" | "window" | number> {
[key: string]: any;
[index: number]: any;

Expand Down
3 changes: 3 additions & 0 deletions types/jsdom/jsdom-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion types/qunit/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ declare global {
}

interface TodoFunction {
(name: string, callback?: TestFunctionCallback): void;
(name: string, callback: TestFunctionCallback): void;
each: EachFunction;
}

Expand Down
2 changes: 0 additions & 2 deletions types/qunit/test/global-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down
2 changes: 0 additions & 2 deletions types/qunit/test/module-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down