Merge pull request #23 from binary-butterfly/dependabot/npm_and_yarn/… #28
GitHub Actions / JEST Tests
succeeded
Oct 23, 2023 in 0s
JEST Tests ✅
✅ reports/junit.xml
44 tests were completed in 904ms with 44 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
test compareMonthAndYear | 44✅ | 832ms |
✅ test compareMonthAndYear
test compareMonthAndYear With a difference of -12 months returns 1
✅ test compareMonthAndYear With a difference of -12 months returns 1
test compareMonthAndYear With a difference of -1 months returns 1
✅ test compareMonthAndYear With a difference of -1 months returns 1
test compareMonthAndYear With a difference of 0 months returns 0
✅ test compareMonthAndYear With a difference of 0 months returns 0
test compareMonthAndYear With a difference of 1 months returns -1
✅ test compareMonthAndYear With a difference of 1 months returns -1
test compareMonthAndYear With a difference of 13 months returns -1
✅ test compareMonthAndYear With a difference of 13 months returns -1
test compareMonthAndYear compare month and year with a difference of -12 years returns 1
✅ test compareMonthAndYear compare month and year with a difference of -12 years returns 1
test compareMonthAndYear compare month and year with a difference of -1 years returns 1
✅ test compareMonthAndYear compare month and year with a difference of -1 years returns 1
test compareMonthAndYear compare month and year with a difference of 0 years returns 0
✅ test compareMonthAndYear compare month and year with a difference of 0 years returns 0
test compareMonthAndYear compare month and year with a difference of 1 years returns -1
✅ test compareMonthAndYear compare month and year with a difference of 1 years returns -1
test compareMonthAndYear compare month and year with a difference of 13 years returns -1
✅ test compareMonthAndYear compare month and year with a difference of 13 years returns -1
compare month and year with a difference of a day but in the same month returns 0
✅ compare month and year with a difference of a day but in the same month returns 0
test compareDateWithoutTime Same day different time returns 0
✅ test compareDateWithoutTime Same day different time returns 0
test compareDateWithoutTime Same day same time returns 0
✅ test compareDateWithoutTime Same day same time returns 0
test compareDateWithoutTime Same time later month returns -1
✅ test compareDateWithoutTime Same time later month returns -1
test compareDateWithoutTime Same date later year returns -1
✅ test compareDateWithoutTime Same date later year returns -1
test compareDateWithoutTime Same date earlier year returns 1
✅ test compareDateWithoutTime Same date earlier year returns 1
test compareDateWithoutTime Same time earlier month returns 1
✅ test compareDateWithoutTime Same time earlier month returns 1
test getDaysInMonth 2021 was no leap year
✅ test getDaysInMonth 2021 was no leap year
test getDaysInMonth 2020 was a leap year
✅ test getDaysInMonth 2020 was a leap year
test getDaysInMonth Jan has 31 days
✅ test getDaysInMonth Jan has 31 days
test getDaysInMonth March has 31 days
✅ test getDaysInMonth March has 31 days
test getDaysInMonth April has 30 days
✅ test getDaysInMonth April has 30 days
test getDaysInMonth May has 31 days
✅ test getDaysInMonth May has 31 days
test getDaysInMonth June has 30 days
✅ test getDaysInMonth June has 30 days
test getDaysInMonth Juli has 31 days
✅ test getDaysInMonth Juli has 31 days
test getDaysInMonth August has 31 days
✅ test getDaysInMonth August has 31 days
test getDaysInMonth September has 30 days
✅ test getDaysInMonth September has 30 days
test getDaysInMonth Oktober has 31 days
✅ test getDaysInMonth Oktober has 31 days
test getDaysInMonth November has 30 days
✅ test getDaysInMonth November has 30 days
test getDaysInMonth December has 31 days
✅ test getDaysInMonth December has 31 days
test getDaysInMonth 2100 will skip a leap year
✅ test getDaysInMonth 2100 will skip a leap year
test checkIfDateAvailable Empty dict is true
✅ test checkIfDateAvailable Empty dict is true
test checkIfDateAvailable Previous day is true
✅ test checkIfDateAvailable Previous day is true
test checkIfDateAvailable Same day is false
✅ test checkIfDateAvailable Same day is false
test checkIfDateAvailable Same day partial is true
✅ test checkIfDateAvailable Same day partial is true
test checkIfDateAvailable Same day partial with multiple bookings sets correct earliest and last values
✅ test checkIfDateAvailable Same day partial with multiple bookings sets correct earliest and last values
test checkIfDateActive Active true and partial empty when in the middle of the booking
✅ test checkIfDateActive Active true and partial empty when in the middle of the booking
test checkIfDateActive Active true and partial top when end is on checked date
✅ test checkIfDateActive Active true and partial top when end is on checked date
test checkIfDateActive Active true and partial bottom when begin is on checked date
✅ test checkIfDateActive Active true and partial bottom when begin is on checked date
test checkIfDateActive Active true and partial switch when begin and end are on checked date
✅ test checkIfDateActive Active true and partial switch when begin and end are on checked date
test checkIfDateActive Active false and partial empty when checked is not overlapping with the booking
✅ test checkIfDateActive Active false and partial empty when checked is not overlapping with the booking
test checkIfDateActive Active false and partial empty when no booking end set
✅ test checkIfDateActive Active false and partial empty when no booking end set
test checkIfDateActive Active false and partial empty when no booking begin set
✅ test checkIfDateActive Active false and partial empty when no booking begin set
test checkIfDateActive Active false and partial empty when no booking set
✅ test checkIfDateActive Active false and partial empty when no booking set
Loading