docs: add missing type parameter to testing example (#40479)
Without this type parameter the call to `resolve()` is invalid. PR Close #40479
This commit is contained in:
parent
9491318c26
commit
315b272f9f
|
@ -617,7 +617,7 @@ describe('demo (with TestBed):', () => {
|
||||||
|
|
||||||
child.childValue = 'bar';
|
child.childValue = 'bar';
|
||||||
|
|
||||||
return new Promise(resolve => {
|
return new Promise<void>(resolve => {
|
||||||
// Wait one JS engine turn!
|
// Wait one JS engine turn!
|
||||||
setTimeout(() => resolve(), 0);
|
setTimeout(() => resolve(), 0);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue