This commit is contained in:
@@ -26,7 +26,7 @@ function vehicle(id: string): Vehicle {
|
||||
}
|
||||
|
||||
test('keeps all vehicle GET endpoints in their established order', () => {
|
||||
const source = readFileSync(new URL('./routes.ts', import.meta.url), 'utf8');
|
||||
const source = readFileSync(new URL('../vehicles.ts', import.meta.url), 'utf8');
|
||||
const paths = Array.from(source.matchAll(/app\.get\('([^']+)'/g), (match) => match[1]);
|
||||
|
||||
assert.deepEqual(paths, [
|
||||
|
||||
Reference in New Issue
Block a user