Last active
October 16, 2018 16:13
-
-
Save BumpeiShimada/61b25d92297932f125fe2b4609a26b30 to your computer and use it in GitHub Desktop.
This file contains 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('isEmpty method with the argument', () => { | |
const validate = require('./validate'); | |
describe.each` | |
str | expected | |
${null} | ${true} | |
${""} | ${true} | |
${"word"} | ${false} | |
`('$str', ({str, expected}) => { | |
test(`returns ${expected}`, () => { | |
expect(validate.isEmpty(str)).toBe(expected) | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment