Skip to content

Commit

Permalink
weh
Browse files Browse the repository at this point in the history
  • Loading branch information
garbados committed Jan 10, 2025
1 parent a994bdd commit e62935b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('witch-clock', function () {
// season tests
const [currentSeason, currentSeasonDate, seasonSince] = witchy.season.current
assert.ok(SEASONS.includes(currentSeason), `Unknown season: ${currentSeason}`)
assert.ok(comesafter(witchy.day.rise, currentSeasonDate))
assert.ok(comesafter(witchy.day.next, currentSeasonDate))
const [upcomingSeason, upcomingSeasonDate, seasonUntil] = witchy.season.upcoming
assert.ok(SEASONS.includes(upcomingSeason), `Unknown season: ${upcomingSeason}`)
assert.notStrictEqual(currentSeason, upcomingSeason)
Expand All @@ -53,7 +53,7 @@ describe('witch-clock', function () {
// phase tests
const [currentPhase, currentPhaseDate, sincePhase] = witchy.moon.current
assert.ok(PHASES.includes(currentPhase), `Unknown season: ${currentPhase}`)
assert.ok(comesafter(witchy.day.rise, currentPhaseDate))
assert.ok(comesafter(witchy.day.next, currentPhaseDate))
const [upcomingPhase, upcomingPhaseDate, tilPhase] = witchy.moon.upcoming
assert.ok(PHASES.includes(upcomingPhase), `Unknown phase: ${upcomingPhase}`)
assert.notStrictEqual(currentPhase, upcomingPhase)
Expand Down

0 comments on commit e62935b

Please sign in to comment.