本文整理匯總了TypeScript中@angular/core/testing/src/testing_internal.AsyncTestCompleter類的典型用法代碼示例。如果您正苦於以下問題:TypeScript AsyncTestCompleter類的具體用法?TypeScript AsyncTestCompleter怎麽用?TypeScript AsyncTestCompleter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了AsyncTestCompleter類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: expectResponse
expectResponse(resourceLoader.get(url), url, 'when', () => async.done());
示例2:
connection.response.subscribe(null !, () => { async.done(); });
示例3: expect
next: (value: any) => {
expect(controlCallbackIsCalled).toBe(true);
async.done();
}
示例4: expect
.then((data) => {
expect(data['receivedData']).toBe(12);
async.done();
});
示例5: expect
error: (err: any) => {
log.push(err);
expect(log).toEqual([1, 2, 3, 4]);
async.done();
}
示例6:
emitter.subscribe({next: () => {}, error: (_: any) => { async.done(); }});