Skip to content

Commit 9b56837

Browse files
committed
fix(test): replace unified API endpoint with generic endpoint
Apply review feedback from @glebedel - this SDK should not have unified endpoints related tests. Changed the test URL from /unified/hris/employees to /tools/execute.
1 parent 60b81d8 commit 9b56837

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/error-stackone-api.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ describe('StackOneAPIError', () => {
7070

7171
it('should include endpoint URL when present in message', () => {
7272
const error = new StackOneAPIError(
73-
'Request failed for https://api.stackone.com/unified/hris/employees',
73+
'Request failed for https://api.stackone.com/tools/execute',
7474
404,
7575
{},
7676
);
7777
const result = error.toString();
78-
expect(result).toContain('Endpoint: https://api.stackone.com/unified/hris/employees');
78+
expect(result).toContain('Endpoint: https://api.stackone.com/tools/execute');
7979
});
8080

8181
it('should format object requestBody as JSON', () => {

0 commit comments

Comments
 (0)