Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
3
test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.js
Normal file
3
test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.js
Normal file
@ -0,0 +1,3 @@
|
||||
const getDaysDiffBetweenDates = (dateInitial, dateFinal) =>
|
||||
(dateFinal - dateInitial) / (1000 * 3600 * 24);
|
||||
module.exports = getDaysDiffBetweenDates;
|
||||
Reference in New Issue
Block a user