We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 839fcea commit 842ca1aCopy full SHA for 842ca1a
test/e2e/app-dir/metadata/metadata.test.ts
@@ -710,10 +710,7 @@ describe('app dir - metadata', () => {
710
711
it('should support root dir robots.txt', async () => {
712
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
- )
+ expect(res.headers.get('content-type')).toBe('text/plain; charset=UTF-8')
717
expect(await res.text()).toContain('User-Agent: *\nDisallow:')
718
const invalidRobotsResponse = await next.fetch('/title/robots.txt')
719
expect(invalidRobotsResponse.status).toBe(404)
0 commit comments