Created
August 30, 2018 16:00
-
-
Save ericorruption/bff93424e53d3539e4e7e55bd87a9df9 to your computer and use it in GitHub Desktop.
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
| test('What component aspect are you testing?', assert => { | |
| const message = 'What should the feature do?' | |
| const actual = 'What is the actual output?' | |
| const expected = 'What is the expected output?' | |
| assert.equal(actual, expected, message) | |
| }) | |
| // examples | |
| const double = i => i * 2 | |
| test('Double given 2', assert => { | |
| const message = 'Should return 4' | |
| const actual = double(2) | |
| const expected = 4 | |
| assert.equal(actual, expected, message) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment