Skip to content

Instantly share code, notes, and snippets.

@ericorruption
Created August 30, 2018 16:00
Show Gist options
  • Select an option

  • Save ericorruption/bff93424e53d3539e4e7e55bd87a9df9 to your computer and use it in GitHub Desktop.

Select an option

Save ericorruption/bff93424e53d3539e4e7e55bd87a9df9 to your computer and use it in GitHub Desktop.
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