MCPcopy Create free account
hub / github.com/angular/components / delay

Function delay

src/aria/private/menu/menu.spec.ts:201–203  ·  view source on GitHub ↗
(amount: number)

Source from the content-addressed store, hash-verified

199
200 describe('Typeahead', () => {
201 function delay(amount: number) {
202 return new Promise(resolve => setTimeout(resolve, amount));
203 }
204
205 it('should move the active item to the next item that starts with the typed character', async () => {
206 const menu = getMenuPattern(undefined, ['Apple', 'Banana', 'Cherry']);

Callers 6

menu.spec.tsFile · 0.70
constructorMethod · 0.50
getChildrenMethod · 0.50
getRootsMethod · 0.50
_drawerToggledMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected