handleError for SvelteKit 3: ids only for unknown errors, compact 404 log line; error page suggestions prefer the real parent over the section
All checks were successful
Deploy production / deploy (push) Successful in 1m10s
All checks were successful
Deploy production / deploy (push) Successful in 1m10s
This commit is contained in:
@@ -27,6 +27,10 @@ describe('suggestPages', () => {
|
||||
expect(hrefs('/trackers/helth')).not.toContain('/trackers/health');
|
||||
expect(hrefs('/trackers/helth', true)).toContain('/trackers/health');
|
||||
});
|
||||
it('ranks the tracker above the section it lives in', () => {
|
||||
expect(hrefs('/trackers/carz')[0]).toBe('/trackers/cars');
|
||||
expect(hrefs('/trackers/doesnotexist')).not.toContain('/trackers');
|
||||
});
|
||||
it('returns nothing for the home page or noise', () => {
|
||||
expect(hrefs('/')).toEqual([]);
|
||||
expect(hrefs('/zzqxj')).toEqual([]);
|
||||
|
||||
Reference in New Issue
Block a user