janders223/serverless_testing_library

View on GitHub
jest/__test__/__snapshots__/matchers.test.js.snap

Summary

Maintainability
Test Coverage
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`matchers toBeJson prints the correct message if fail 1`] = `
"expect(received).toBeJson(expected)

Expected: \\"text/plain\\" to be 'application/json'"
`;

exports[`matchers toHaveHeader prints the correct message for key matches 1`] = `
"expect(received).toHaveHeader(expected)

Expected: {\\"x-foo-bar\\": \\"foo\\"}
To contain header [\\"x-api-key\\"]
"
`;

exports[`matchers toHaveHeader prints the correct message for key, value matches 1`] = `
"expect(received).toHaveHeader(expected)

Expected: \\"x-api-key\\":\\"foo\\"
Received: \\"x-api-key\\":undefined
"
`;

exports[`matchers toHaveStatus should have the correct message if it fails 1`] = `
"expect(received).toHaveStatus(expected)

Expected: 200
Received: 204
"
`;