scrimba
Unit Testing
Mocks + Debug with me! 🪲
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

Mocks + Debug with me! 🪲
AboutCommentsNotes
Mocks + Debug with me! 🪲
Expand for more info
main.js
run
preview
console
//  Unit Testing: Mocks

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

beforeEach(() => {
const data = { firstName: 'Dylan', middleName: 'Christopher', lastName: 'Israel', id: 1 };
model = new User(data, {});
});

describe('getMyFullUserData', () => {
it('gets user data by id', () => {

});
});
});
Console
!
"Spec 'User Class getMyFullUserData gets user data by id' has no expectations."
,
/index.html
-9:19