Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
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)
})
})