Skip to content

Commit 64f40d5

Browse files
gitKrystanchriskrycho
authored andcommittedDec 15, 2022
Add tab type test
(cherry picked from commit 379e63f)
1 parent 939f29f commit 64f40d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎type-tests/api.ts

+10
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import {
6363
DebugInfo as InternalDebugInfo,
6464
DeprecationFailure,
6565
Warning,
66+
tab,
6667
} from '@ember/test-helpers';
6768
import { ComponentInstance } from '@glimmer/interfaces';
6869
import { Owner } from '@ember/test-helpers/build-owner';
@@ -95,6 +96,15 @@ expectTypeOf(select).toEqualTypeOf<
9596
keepPreviouslySelected?: boolean
9697
) => Promise<void>
9798
>();
99+
expectTypeOf(tab).toEqualTypeOf<
100+
({
101+
backwards,
102+
unRestrainTabIndex,
103+
}?: {
104+
backwards?: boolean | undefined;
105+
unRestrainTabIndex?: boolean | undefined;
106+
}) => Promise<void>
107+
>();
98108
expectTypeOf(tap).toEqualTypeOf<
99109
(target: Target, options?: TouchEventInit) => Promise<void>
100110
>();

0 commit comments

Comments
 (0)
Please sign in to comment.