Skip to content

Instantly share code, notes, and snippets.

@whtswrng
Created November 7, 2018 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whtswrng/196a83f11c1003c91186d779f39b6165 to your computer and use it in GitHub Desktop.
Save whtswrng/196a83f11c1003c91186d779f39b6165 to your computer and use it in GitHub Desktop.
it('should send OK with correct headers', () => {
expect(response.send).toHaveBeenCalledWith(200, {headers: {'set-cookie': externalResponseHeaders['set-cookie']}});
expect(response.send).toHaveBeenCalledTimes(1);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment