scrimba
Unit Testing
Grouping with describe (Challenge)
Go Pro!

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

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