mirror of
https://github.com/misenhower/splatoon2.ink.git
synced 2026-09-28 12:16:54 -05:00
Improve readability of test setup and assertions
This commit is contained in:
@@ -3,6 +3,7 @@ import assert from 'node:assert/strict';
|
||||
import { nextDataRefreshAt } from '../src/common/dataRefresh.js';
|
||||
|
||||
const at = time => Date.parse(`2026-09-07T${time}Z`);
|
||||
|
||||
test('a late hourly publication is picked up again without waiting another hour', () => {
|
||||
assert.equal(nextDataRefreshAt(at('10:00:10'), 0), at('10:00:25'));
|
||||
assert.equal(nextDataRefreshAt(at('10:00:40'), 0), at('10:01:25'));
|
||||
|
||||
Reference in New Issue
Block a user