Skip to content

Commit ade9932

Browse files
committed
chore: fix test
1 parent 3c3f81b commit ade9932

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-boot-admin-server-ui/src/main/frontend/utils/axios.spec.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ describe('redirectOn401', () => {
4444
});
4545

4646
it('should redirect on 401', async () => {
47-
48-
4947
const error = {
5048
response: {
5149
status: 401
@@ -58,7 +56,7 @@ describe('redirectOn401', () => {
5856
expect(e).toBe(error);
5957
}
6058

61-
expect(window.location.assign).toBeCalledWith('login?redirectTo=http%3A%2F%2Fexample.com%2F');
59+
expect(window.location.assign).toBeCalledWith('login?redirectTo=http%3A%2F%2Fexample.com%2F&error=401');
6260
});
6361

6462
it('should not redirect on 401 for predicate yields false', async () => {

0 commit comments

Comments
 (0)