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:
Pete Bacon Darwin 2021-01-20 10:35:43 +00:00 committed by Jessica Janiuk
parent 9491318c26
commit 315b272f9f
1 changed files with 1 additions and 1 deletions

View File

@ -617,7 +617,7 @@ describe('demo (with TestBed):', () => {
child.childValue = 'bar';
return new Promise(resolve => {
return new Promise<void>(resolve => {
// Wait one JS engine turn!
setTimeout(() => resolve(), 0);
})