Last active
October 21, 2018 10:59
-
-
Save takethefake/0c26c43dd05e5d39e372a3ede4b4e2f9 to your computer and use it in GitHub Desktop.
Medium: Jest Expect example test structure
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
describe('Vehicle color function',()=>{ | |
it('should return blue for car',()=>{ | |
expect(vehicleColor('car')).toBe('blue'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment