Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaotian committed Apr 24, 2024
1 parent c821c36 commit 02c2869
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/src/tests/axios-compatible.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ describe('axios compatible tests', () => {
//
});
assert.strictEqual(xiorHasError, true);
assert.strictEqual(xiorError.request?.url, baseURL + '/400');
assert.strictEqual(xiorError.response?.config.url, baseURL + '/400');
assert.strictEqual(xiorError.request?.url, '/400');
assert.strictEqual(xiorError.response?.config.url, '/400');
});
});
2 changes: 1 addition & 1 deletion tests/src/tests/interceptors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ describe('interceptors', function () {

await instance.get('/get').then(({ config: request }) => {
assert.equal(request.baseURL, baseURL);
assert.equal(request.url, baseURL + '/get');
assert.equal(request.url, '/get');
});
});

Expand Down

0 comments on commit 02c2869

Please sign in to comment.