Created
August 12, 2018 05:05
-
-
Save jaamaalxyz/4e782886bac1e5fcd3e2c0d3be5686cd 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
const assert = require('assert'); | |
const operations = require('./operations'); | |
// Below test cases for input validation | |
it('indicates failure when a string is used instead of a number', () => { | |
assert.equal(operations.validateNumbers('beauty', 10), false) | |
}); | |
it('indicates failure when two strings is used instead of numbers', () => { | |
assert.equal(operations.validateNumbers('Jamal', 'Beauty'), false) | |
}); | |
it('successfully run when two inputs are number', () => { | |
assert.equal(operations.validateNumbers(10, 10), true) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment