scrimba
Unit Testing
Grouping with describe (Challenge)
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

To see this lesson you need to be logged in. Joining Scrimba is free and gives you access to 20+ courses.Sign up
Grouping with describe (Challenge)
AboutCommentsNotes
Grouping with describe (Challenge)
Expand for more info
main.js
run
preview
console
/* Unit Testing - Grouping with Describe Challenge
*
* Is there a more reliable way to identify our grouping name?
*
*/

class User {
firstName;
lastName;
middleName;

constructor(data = {}){
this.firstName = data.firstName || '';
this.lastName = data.lastName || '';
this.middleName = data.middleName;
}
}

/**
* Test Suite
*/
describe('User', () => {

});
Console
/index.html
-1:58