Skip to content

Commit

Permalink
ci: 馃帯 Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpyw committed Oct 14, 2021
1 parent 2fcf266 commit d9d4ee6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ const mock = new MockAdapter(client);
test('it should be converted on success', (done) => {
mock.onPost('/success').reply((config) => {
expect(config.method).toBe('post');
expect(config.headers['X-Requested-With']).toBe('XMLHttpRequest');
expect(config.headers.thisCamelShouldBePreserved).toBe('preserved');
expect(config.headers?.['X-Requested-With']).toBe('XMLHttpRequest');
expect(config.headers?.thisCamelShouldBePreserved).toBe('preserved');
expect(config.params.user_id).toBe(1);
expect(config.params.screen_name).toBe('yay');
expect(config.params.thisCamelShouldBePreserved).toBe('preserved');
Expand Down Expand Up @@ -108,8 +108,8 @@ test('it should be converted on success', (done) => {
test('it should be converted on failure', (done) => {
mock.onPost('/failure').reply((config) => {
expect(config.method).toBe('post');
expect(config.headers['X-Requested-With']).toBe('XMLHttpRequest');
expect(config.headers.thisCamelShouldBePreserved).toBe('preserved');
expect(config.headers?.['X-Requested-With']).toBe('XMLHttpRequest');
expect(config.headers?.thisCamelShouldBePreserved).toBe('preserved');
expect(config.params.user_id).toBe(1);
expect(config.params.screen_name).toBe('yay');
expect(config.params.thisCamelShouldBePreserved).toBe('preserved');
Expand Down

0 comments on commit d9d4ee6

Please sign in to comment.