test: fix parameter test text

This commit is contained in:
DIYgod 2024-04-07 14:06:32 +08:00
parent 2a6d5ac9f9
commit efc2b2f5a4
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ describe('wrong_path', () => {
const response = await app.request('/wrong');
expect(response.status).toBe(404);
expect(response.headers.get('cache-control')).toBe(`public, max-age=${config.cache.routeExpire}`);
expect(await response.text()).toMatch('wrong path');
expect(await response.text()).toMatch('The route does not exist or has been deleted.');
});
});