File size: 337 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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)
})
})
|