Update index.test.ts
This commit is contained in:
parent
9aba451b18
commit
9b254c1cd0
@ -478,7 +478,7 @@ describe("E2E Tests for API Routes", () => {
|
|||||||
urls.forEach((url: string) => {
|
urls.forEach((url: string) => {
|
||||||
const pathSplits = new URL(url).pathname.split('/');
|
const pathSplits = new URL(url).pathname.split('/');
|
||||||
const depth = pathSplits.length - (pathSplits[0].length === 0 && pathSplits[pathSplits.length - 1].length === 0 ? 1 : 0);
|
const depth = pathSplits.length - (pathSplits[0].length === 0 && pathSplits[pathSplits.length - 1].length === 0 ? 1 : 0);
|
||||||
expect(depth).toBeLessThanOrEqual(0);
|
expect(depth).toBeLessThanOrEqual(1);
|
||||||
});
|
});
|
||||||
}, 120000);
|
}, 120000);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user