feat(assets): refine compact inventory drilldowns and exact subtotal scopes
This commit is contained in:
@@ -27,7 +27,9 @@ function vehicle(id: string): Vehicle {
|
||||
|
||||
test('keeps all vehicle GET endpoints in their established order', () => {
|
||||
const source = readFileSync(new URL('../vehicles.ts', import.meta.url), 'utf8');
|
||||
const paths = Array.from(source.matchAll(/app\.get\('([^']+)'/g), (match) => match[1]);
|
||||
const paths = Array.from(
|
||||
source.matchAll(/app\.get\('([^']+)'|app\.on\(\[([^\]]+)\],\s*'([^']+)'/g),
|
||||
).flatMap((match) => match[1] ? [match[1]] : /'GET'/.test(match[2]) ? [match[3]] : []);
|
||||
|
||||
assert.deepEqual(paths, [
|
||||
'/summary',
|
||||
|
||||
Reference in New Issue
Block a user