Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore(deps-dev): upgrading eslint, @readme/eslint-config, and prettier #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions __tests__/headers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ const headers = {
describe('Headers', () => {
describe('#getHeader', () => {
it('should get a header', () => {
expect(helpers.getHeader(headers, 'content-type')).toStrictEqual(
expect(helpers.getHeader(headers, 'content-type')).toBe(
'multipart/form-data; boundary=---011000010111000001101001'
);

expect(helpers.getHeader(headers, 'content-TYPE')).toStrictEqual(
expect(helpers.getHeader(headers, 'content-TYPE')).toBe(
'multipart/form-data; boundary=---011000010111000001101001'
);

expect(helpers.getHeader(headers, 'Accept')).toStrictEqual('application/json');
expect(helpers.getHeader(headers, 'Accept')).toBe('application/json');

expect(helpers.getHeader(headers, 'authorization')).toBeUndefined();
});
});

describe('#getHeaderName', () => {
it('should get a header name', () => {
expect(helpers.getHeaderName(headers, 'content-type')).toStrictEqual('Content-Type');
expect(helpers.getHeaderName(headers, 'content-TYPE')).toStrictEqual('Content-Type');
expect(helpers.getHeaderName(headers, 'Accept')).toStrictEqual('accept');
expect(helpers.getHeaderName(headers, 'content-type')).toBe('Content-Type');
expect(helpers.getHeaderName(headers, 'content-TYPE')).toBe('Content-Type');
expect(helpers.getHeaderName(headers, 'Accept')).toBe('accept');

expect(helpers.getHeaderName(headers, 'authorization')).toBeUndefined();
});
Expand Down
3 changes: 1 addition & 2 deletions __tests__/integration.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable jest/no-conditional-expect */
/* eslint-disable jest/no-try-expect */
const fixtures = require('./__fixtures__');
const HTTPSnippet = require('../src');
const shell = require('child_process');
Expand Down Expand Up @@ -147,7 +146,7 @@ describe.each(clients)('%s', (_, client) => {
} catch (err) {
// Some targets always assume that their response is JSON and for this case (`custom-method`) will print out
// an empty string instead.
expect(stdoutTrimmed).toStrictEqual('');
expect(stdoutTrimmed).toBe('');
}
return;
}
Expand Down
Loading