Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dhershman1 committed Sep 6, 2018
1 parent 6f39c68 commit feba136
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/number.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ test('Throws type error when not given correct type', t => {
}
})

test('Letter based card caught', t => {
const { isValid, cardType } = number('abcdefg')

t.false(isValid)
t.is(cardType, 'Invalid Card Number')
t.end()
})

test('Gives back string of invalid if it fails validation', t => {
const { isValid, cardType } = number(4111222333444555)

Expand Down

0 comments on commit feba136

Please sign in to comment.