Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

content-type test doesn't work in chapter "Integration tests" #3

Open
colorcube opened this issue Jan 22, 2023 · 1 comment
Open

content-type test doesn't work in chapter "Integration tests" #3

colorcube opened this issue Jan 22, 2023 · 1 comment

Comments

@colorcube
Copy link

https://docs.deepkit.io/german/framework.html#_integration_tests

expect(response.getHeader('content-type')).toBe('text/plain; charset=utf-8');

the delivered content-type is undefined

@colorcube
Copy link
Author

and the body has "hello world" in it (including ")

maybe

return new Response('hello ' + text, 'text/plain; charset=utf-8');

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant