silverwolf-x/project / packages /next /src /client /components /is-next-router-error.test.ts
silverwolf-x's picture
download
raw
337 Bytes
import { isNextRouterError } from './is-next-router-error'
import { notFound } from './not-found'
describe('isNextRouterError', () => {
it('returns true for a navigation error', () => {
let caught
try {
notFound()
} catch (error) {
caught = error
}
expect(isNextRouterError(caught)).toBe(true)
})
})

Xet Storage Details

Size:
337 Bytes
·
Xet hash:
28b241b7ff4a05a748bb78910e81b4ffd2e2110d188bb13b1c81dc57f549f37c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.