Test cleanup and fixes [i-l]
This commit is contained in:
@ -1,17 +1,15 @@
|
||||
const expect = require('expect');
|
||||
const luhnCheck = require('./luhnCheck.js');
|
||||
|
||||
|
||||
test('luhnCheck is a Function', () => {
|
||||
test('luhnCheck is a Function', () => {
|
||||
expect(luhnCheck).toBeInstanceOf(Function);
|
||||
});
|
||||
test('validates identification number', () => {
|
||||
expect(luhnCheck(6011329933655299)).toBe(false)
|
||||
test('validates identification number', () => {
|
||||
expect(luhnCheck(6011329933655299)).toBeFalsy();
|
||||
});
|
||||
test('validates identification number', () => {
|
||||
expect(luhnCheck('4485275742308327')).toBe(true)
|
||||
test('validates identification number', () => {
|
||||
expect(luhnCheck('4485275742308327')).toBeTruthy();
|
||||
});
|
||||
test('validates identification number', () => {
|
||||
expect(luhnCheck(123456789)).toBe(false)
|
||||
test('validates identification number', () => {
|
||||
expect(luhnCheck(123456789)).toBeFalsy();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user