Test cleanup and fixes [c-d]
This commit is contained in:
@ -5,7 +5,13 @@ const luhnCheck = require('./luhnCheck.js');
|
||||
test('luhnCheck is a Function', () => {
|
||||
expect(luhnCheck).toBeInstanceOf(Function);
|
||||
});
|
||||
t.equal(luhnCheck(6011329933655299), false, "validates identification number");
|
||||
t.equal(luhnCheck('4485275742308327'), true, "validates identification number");
|
||||
t.equal(luhnCheck(123456789), false, "validates identification number");
|
||||
test('validates identification number', () => {
|
||||
expect(luhnCheck(6011329933655299)).toBe(false)
|
||||
});
|
||||
test('validates identification number', () => {
|
||||
expect(luhnCheck('4485275742308327')).toBe(true)
|
||||
});
|
||||
test('validates identification number', () => {
|
||||
expect(luhnCheck(123456789)).toBe(false)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user