Added tests for new ordering helper functions and updated changelog

This commit is contained in:
Alejandro Celaya
2021-12-25 19:58:40 +01:00
parent 49c841ca07
commit 3274088b54
4 changed files with 18 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ describe('date', () => {
});
describe('isBetween', () => {
test.each([
it.each([
[ now, undefined, undefined, true ],
[ now, subDays(now, 1), undefined, true ],
[ now, now, undefined, true ],
@@ -52,7 +52,7 @@ describe('date', () => {
});
describe('isBeforeOrEqual', () => {
test.each([
it.each([
[ now, now, true ],
[ now, addDays(now, 1), true ],
[ now, subDays(now, 1), false ],