feat(core): add support for using async/await with Jasmine (#24637)
Example: ``` it('...', await(async() => { doSomething(); await asyncFn(); doSomethingAfter(); })); ``` PR Close #24637
This commit is contained in:

committed by
Miško Hevery

parent
676ec411b9
commit
71100e6d72
5
tools/public_api_guard/core/testing.d.ts
vendored
5
tools/public_api_guard/core/testing.d.ts
vendored
@ -53,6 +53,11 @@ export declare class InjectSetupWrapper {
|
||||
inject(tokens: any[], fn: Function): () => any;
|
||||
}
|
||||
|
||||
export declare function jasmineAwait(fn: () => Promise<any>): (done: {
|
||||
(): void;
|
||||
fail: (message?: Error | string) => void;
|
||||
}) => void;
|
||||
|
||||
/** @experimental */
|
||||
export declare type MetadataOverride<T> = {
|
||||
add?: Partial<T>;
|
||||
|
Reference in New Issue
Block a user