ui changes and cs prices
All checks were successful
Test and deploy staging / staging (push) Successful in 11m52s

This commit is contained in:
2026-09-25 00:44:06 +00:00
parent c757d0882a
commit abac077541
200 changed files with 6236 additions and 2311 deletions

View File

@@ -0,0 +1,12 @@
import { describe, expect, it } from 'vitest';
import { steamDate } from './steam';
describe('Steam market history dates', () => {
it('keeps hourly timestamps and older daily timestamps in UTC', () => {
expect(steamDate('Sep 24 2024 01: +0')).toBe('2024-09-24T01:00:00.000Z');
expect(steamDate('Jan 08 2016')).toBe('2016-01-08T00:00:00.000Z');
});
it('rejects an unknown format', () => {
expect(() => steamDate('not a date')).toThrow('Unknown Steam date');
});
});