Skip to content

Commit 842ca1a

Browse files
committed
test: update e2e/app-dir/metadata/metadata.test.ts
1 parent 839fcea commit 842ca1a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/e2e/app-dir/metadata/metadata.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -710,10 +710,7 @@ describe('app dir - metadata', () => {
710710

711711
it('should support root dir robots.txt', async () => {
712712
const res = await next.fetch('/robots.txt')
713-
expect(res.headers.get('content-type')).toBe(
714-
// In dev, sendStatic() is used to send static files, which adds MIME type.
715-
isNextDev ? 'text/plain; charset=UTF-8' : 'text/plain'
716-
)
713+
expect(res.headers.get('content-type')).toBe('text/plain; charset=UTF-8')
717714
expect(await res.text()).toContain('User-Agent: *\nDisallow:')
718715
const invalidRobotsResponse = await next.fetch('/title/robots.txt')
719716
expect(invalidRobotsResponse.status).toBe(404)

0 commit comments

Comments
 (0)