Skip to content

Commit

Permalink
updated the xeroclient spec file and added axios types in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy-tw committed Feb 2, 2024
1 parent 29ee151 commit 26c3298
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 76 deletions.
94 changes: 20 additions & 74 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/jest": "^24.9.1",
"@types/node": "^12.12.21",
"@types/request": "^2.48.4",
"@types/axios": "^0.14.0",
"jest": "^24.9.0",
"open": "^6.4.0",
"prompt": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/test/xeroClient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('the XeroClient', () => {
.get('/connections')
.reply(200, connectionsResponse);

sinon.stub(xero, 'tokenRequest').returns({ body: JSON.stringify(refreshedTokenSet) });
sinon.stub(xero, 'tokenRequest').returns({ body: refreshedTokenSet });

disconnect = nock('https://api.xero.com')
.delete(`/connections/${connectionsResponse[0].tenantId}`)
Expand Down

0 comments on commit 26c3298

Please sign in to comment.