Skip to content

Commit

Permalink
Fix failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Deploy+User committed Sep 12, 2023
1 parent 288ea44 commit 27265bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe("Testing QuantClient", () => {
})
expect(t.getClient('organization').headers).toMatchObject({
'User-Agent': 'Quant (+http://api.quantcdn.io)',
'Quant-Organization': config.organization,
'Quant-Organisation': config.organization,
'Authorization': `Bearer ${config.bearer}`,
})
})
Expand Down
4 changes: 4 additions & 0 deletions tests/fixtures/no-permission.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"error": true,
"message": "User does not have valid API access. Check the token is scoped for this organisation"
}
2 changes: 1 addition & 1 deletion tests/response.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,6 @@ describe('response test', () => {
i++;
}
}
expect(i).toBe(21)
expect(i).toBe(20)
})
})

0 comments on commit 27265bd

Please sign in to comment.