Skip to content

Commit a8bf119

Browse files
committed
Fix string expectations in "app-dir - fetch warnings" test
1 parent 4c8eec3 commit a8bf119

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

test/e2e/app-dir/logging/fetch-warning.test.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,24 @@ describe('app-dir - fetch warnings', () => {
2424
it('should log when request input is a string', async () => {
2525
await retry(() => {
2626
expect(next.cliOutput).toInclude(`
27-
│ GET https://next-data-api-endpoint.vercel.app/api/random?request-string
28-
│ │ ⚠ Specified "cache: force-cache" and "revalidate: 3", only one should be specified.
29-
`)
27+
│ GET https://next-data-api-endpoint.vercel.app/api/random?request-string
28+
│ │ ⚠ Specified "cache: force-cache" and "revalidate: 3", only one should be specified.`)
3029
})
3130
})
3231

3332
it('should log when request input is a Request instance', async () => {
3433
await retry(() => {
3534
expect(next.cliOutput).toInclude(`
36-
│ GET https://next-data-api-endpoint.vercel.app/api/random?request-input-cache-override
37-
│ │ ⚠ Specified "cache: force-cache" and "revalidate: 3", only one should be specified.
38-
`)
35+
│ GET https://next-data-api-endpoint.vercel.app/api/random?request-input-cache-override
36+
│ │ ⚠ Specified "cache: force-cache" and "revalidate: 3", only one should be specified.`)
3937
})
4038
})
4139

4240
it('should not log when overriding cache within the Request object', async () => {
4341
await retry(() => {
4442
expect(next.cliOutput).not.toInclude(`
45-
│ GET https://next-data-api-endpoint.vercel.app/api/random?request-input
46-
│ │ ⚠ Specified "cache: force-cache" and "revalidate: 3", only one should be specified.
47-
`)
43+
│ GET https://next-data-api-endpoint.vercel.app/api/random?request-input
44+
│ │ ⚠ Specified "cache: force-cache" and "revalidate: 3", only one should be specified.`)
4845
})
4946
})
5047
} else {

0 commit comments

Comments
 (0)