Refer to the code below:
Async funct on functionUnderTest(isOK) {
If (isOK) return ‘OK’;
Throw new Error(‘not OK’);
)
Which assertion accurately tests the above code?
Console.assert (await functionUnderTest(true), ‘ OK ’)
Console.assert (await functionUnderTest(true), ‘ not OK ’)
Console.assert (await functionUnderTest(true), ‘ notOK ’)
Console.assert (await functionUnderTest(true), ‘OK’)
Submit