Remove T6 Grief and Turned map selections
This commit is contained in:
@@ -3,12 +3,22 @@ import {
|
||||
parseServerName,
|
||||
selectedZombieMap,
|
||||
t5ZombieMapBySlug,
|
||||
zombieMapBySlug,
|
||||
T5_ZOMBIE_MAPS,
|
||||
T6_ZOMBIE_MAPS
|
||||
} from '../../src/lib/server/fleet/map-aliases.js';
|
||||
import { serverTitle } from '../../src/lib/ui/server-labels.js';
|
||||
|
||||
describe('T6 map identity', () => {
|
||||
it.each([
|
||||
['towngrief', 'zm_transit'], ['farmgrief', 'zm_transit'], ['busdepotgrief', 'zm_transit'],
|
||||
['cellblock', 'zm_prison'], ['buriedgrief', 'zm_buried'], ['diner', 'zm_transit_dr'], ['buriedturned', 'zm_buried']
|
||||
])('excludes %s without falling back to a supported variant of the same engine map', (slug, canonical) => {
|
||||
expect(zombieMapBySlug('t6', slug)).toBeUndefined();
|
||||
expect(selectedZombieMap('t6', canonical, slug)).toBeUndefined();
|
||||
expect(parseServerName(`t6_zombie_${slug}_1`)?.mapCanonical).toBeNull();
|
||||
});
|
||||
|
||||
it.each(T6_ZOMBIE_MAPS)('parses and labels $friendly without losing its variant', (map) => {
|
||||
const name = `t6_zombie_${map.slug}_2`;
|
||||
expect(parseServerName(name)).toMatchObject({ game: 't6', gameMode: 'zombie', mapCanonical: map.canonical, mapSlug: map.slug, lobby: 2 });
|
||||
|
||||
Reference in New Issue
Block a user