Skip to content

Instantly share code, notes, and snippets.

@dmyerscough
Last active March 7, 2022 07:33
Show Gist options
  • Save dmyerscough/a7c477289cd0de1823ccea5e8c6f7988 to your computer and use it in GitHub Desktop.
Save dmyerscough/a7c477289cd0de1823ccea5e8c6f7988 to your computer and use it in GitHub Desktop.
const multiply = (a, b) => {
return parseInt(a) * parseInt(b);
}
describe('Multiply functionality', () => {
test('multiply 2 by 2 to equal 4', () => {
expect(multiply(2, 2)).toBe(4);
});
test('verify return value is a number', () => {
expect(typeof multiply(2, 2)).toBe('number')
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment