Which assertion accurately tests the above code?
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?
A . Console.assert (await functionUnderTest(true), ‘OK’)
B . Console.assert (await functionUnderTest(true), ‘not OK’)
C . Console.assert (await functionUnderTest(true), ‘notOK’)
D . Console.assert (await functionUnderTest(true), ‘OK’)
Answer: D
Latest JavaScript Developer I Dumps Valid Version with 144 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Subscribe
Login
0 Comments
Inline Feedbacks
View all comments