Guest User

Untitled

a guest
Oct 16th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. describe('isEmpty method with the argument', () => {
  2. const validate = require('./validate');
  3.  
  4. describe.each`
  5. str | expected
  6. ${null} | ${true}
  7. ${""} | ${true}
  8. ${"word"} | ${false}
  9. `('$str', ({str, expected}) => {
  10. test(`returns ${expected}`, () => {
  11. expect(validate.isEmpty(str)).toBe(expected)
  12. });
  13. });
  14. });
Add Comment
Please, Sign In to add comment