Skip to content

Commit

Permalink
Additional typing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed Aug 7, 2023
1 parent e937d23 commit 8f401f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/requester-utils/test/unit/RequesterUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ describe('defaultOptionsHandler', () => {
method: 'GET',
});

expect(headers.sudo).toBeUndefined();
expect(headers?.sudo).toBeUndefined();
});

it('should assign the sudo property if passed', async () => {
const { headers } = await defaultOptionsHandler(serviceOptions, {
sudo: 'testsudo',
});

expect(headers.sudo).toBe('testsudo');
expect(headers?.sudo).toBe('testsudo');
});

it('should assign the prefixUrl property if passed', async () => {
Expand Down Expand Up @@ -98,7 +98,7 @@ describe('defaultOptionsHandler', () => {
method: 'GET',
});

expect(headers.token).toBe('1234');
expect(headers?.token).toBe('1234');
});
});

Expand Down

0 comments on commit 8f401f4

Please sign in to comment.