Add Prettier and ESLint tooling (Refs #77)

This commit is contained in:
2026-10-09 15:56:13 -04:00
parent 8ed059b8d3
commit 16469e2d43
711 changed files with 99737 additions and 28286 deletions
+15 -3
View File
@@ -4,9 +4,21 @@ import { statusPresentation } from '../../src/lib/ui/status.js';
describe('operator-facing identities and states', () => {
it('preserves lobby numbers and distinguishes T6 variants sharing an engine map', () => {
expect(serverIdentity('t6_zombie_town_12')).toEqual({ map:'Town Survival', lobby:12, game:'Black Ops II' });
expect(serverIdentity('t6_zombie_farm_2')).toEqual({ map:'Farm Survival', lobby:2, game:'Black Ops II' });
expect(serverIdentity('custom-server')).toEqual({ map:'custom-server', lobby:null, game:'' });
expect(serverIdentity('t6_zombie_town_12')).toEqual({
map: 'Town Survival',
lobby: 12,
game: 'Black Ops II'
});
expect(serverIdentity('t6_zombie_farm_2')).toEqual({
map: 'Farm Survival',
lobby: 2,
game: 'Black Ops II'
});
expect(serverIdentity('custom-server')).toEqual({
map: 'custom-server',
lobby: null,
game: ''
});
});
it('keeps normal waiting neutral and distinguishes test success from promotion', () => {
expect(statusPresentation('awaiting-empty').tone).toBe('neutral');