Skip to content

Commit ebec9b5

Browse files
Update test/helpers/utils.spec.ts
Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
1 parent 96186b5 commit ebec9b5

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

test/helpers/utils.spec.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -221,28 +221,4 @@ describe('redirectsForNext404Route', () => {
221221
expect(generateDynamicRewrites(route)).toStrictEqual(expected)
222222
})
223223

224-
it('returns static 404 redirects when LEGACY_FALLBACK_FALSE is set as "false"', async () => {
225-
// testing to make sure that the any other string other than 'true' still returns the static 404 redirects
226-
process.env.LEGACY_FALLBACK_FALSE = 'false'
227-
228-
const expected = {
229-
dynamicRewrites: [
230-
{
231-
force: false,
232-
from: '/_next/data/test/getStaticProps/:id.json',
233-
status: 404,
234-
to: '/server/pages/404.html',
235-
},
236-
{
237-
force: false,
238-
from: '/getStaticProps/:id',
239-
status: 404,
240-
to: '/server/pages/404.html',
241-
},
242-
],
243-
dynamicRoutesThatMatchMiddleware: [],
244-
}
245-
246-
expect(generateDynamicRewrites(route)).toStrictEqual(expected)
247-
})
248224
})

0 commit comments

Comments
 (0)