Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Sep 22, 2024
1 parent e2b56bb commit cb9008c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe('integration', () => {
test('client json', async () => {
const client = Client.build('my_token');

const response = await client.product().json({foo: 'bar'});
const response = await client.product().json({string: 'bar'});

// @ts-ignore
expect(response.headers['Authorization']).toBe('Bearer my_token');
Expand All @@ -150,7 +150,7 @@ describe('integration', () => {
expect(response.headers['User-Agent']).toBe('SDKgen Client v1.0');
expect(response.method).toBe('POST');
expect(response.args).toStrictEqual({});
expect(response.json).toStrictEqual({foo: 'bar'});
expect(response.json?.string).toBe('bar');
});

test('client multipart', async () => {
Expand Down

0 comments on commit cb9008c

Please sign in to comment.