Test cleanup and fixes [g-h]

This commit is contained in:
Angelos Chalaris
2018-06-18 16:57:55 +03:00
parent 382c452858
commit 7e9aae6f13
26 changed files with 113 additions and 168 deletions

View File

@ -1,11 +1,9 @@
const expect = require('expect');
const getDaysDiffBetweenDates = require('./getDaysDiffBetweenDates.js');
test('getDaysDiffBetweenDates is a Function', () => {
test('getDaysDiffBetweenDates is a Function', () => {
expect(getDaysDiffBetweenDates).toBeInstanceOf(Function);
});
test('Returns the difference in days between two dates', () => {
expect(getDaysDiffBetweenDates(new Date('2017-12-13'), new Date('2017-12-22'))).toBe(9)
test('Returns the difference in days between two dates', () => {
expect(getDaysDiffBetweenDates(new Date('2017-12-13'), new Date('2017-12-22'))).toBe(9);
});