scrimba
Unit Testing
Additional matchers: toBeDefined() & toEqual()
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

Additional matchers: toBeDefined() & toEqual()
AboutCommentsNotes
Additional matchers: toBeDefined() & toEqual()
Expand for more info
main.js
run
preview
console
// Unit Testing: Additional Matchers

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

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

describe('additional matchers examples', () => {
// toBeDefined(), toEqual()
});
});
Console
/index.html
-3:39