Created
December 26, 2018 13:55
-
-
Save goldbergyoni/625f647aa9442204c8c1b7f8ff4157f1 to your computer and use it in GitHub Desktop.
Test name constitutes 3 parts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //1. unit under test | |
| describe('Products Service', function() { | |
| describe('Add new product', function() { | |
| //2. scenario and 3. expectation | |
| it('When no price is specified, then the product status is pending approval', ()=> { | |
| const newProduct = new ProductService().add(...); | |
| expect(newProduct.status).to.equal('pendingApproval'); | |
| }); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment