scrimba
Unit Testing
Unit Testing: Spies 🕵️
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Unit Testing: Spies 🕵️
AboutCommentsNotes
Unit Testing: Spies 🕵️
Expand for more info
main.js
run
preview
console
// Unit Testing: Spies

// Test Suite
describe(`${User.name} Class`, () => {
let model;

beforeEach(() => {
model = new User();
});

describe('say my name', () => {
it('alerts the full name of user', () => {
// arrange

// act

// assert
});
});
});
Console
!
"Spec 'User Class say my name alerts the full name of user' has no expectations."
,
/index.html
-4:02