Testing Flashcards

1
Q

When the assertion passes, what happens?

A

Nothing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When the assertion fails, what happens?

A

It displays the options error message added to the assertion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Core Node.js module that provides methods for debugging

A

console

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Node.js console class methods

A

console.log, console.error and console.warn

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Node.js module that provides and API for implementing the stream interface

A

stream

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Node.js module that provides various utilities that are used for supporting the Node.js internal APIs

A

util

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is used in testing to replace a dependency with an object in order to evaluate and verify the behavior of a function?

A

Mocking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is used in testing to return a predetermined value instead of actual output?

A

Stubbing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What refers to a test that successfully passed only because of a flaw in the internal logic of the unit test?

A

False positive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a testing approach where the test focuses on the behavior of an application from an end user’s perspective?

A

Black box testing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly