Skip to content

Commit 155b88e

Browse files
author
hirsch88
committed
🐛 Fix tests
1 parent 2ca57cf commit 155b88e

File tree

4 files changed

+3
-20
lines changed

4 files changed

+3
-20
lines changed

src/auth/AuthService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class AuthService {
2727
}
2828
}
2929

30-
this.log.info('No Credentials provided by the client');
30+
this.log.info('No credentials provided by the client');
3131
return undefined;
3232
}
3333

src/database/seeds/CreateBruce.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { hash } from 'bcrypt';
21
import { Connection } from 'typeorm';
32

43
import { User } from '../../../src/api/models/User';

test/e2e/utils/auth.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

test/unit/auth/AuthService.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('AuthService', () => {
3636
});
3737
const token = authService.parseBasicAuthFromRequest(req);
3838
expect(token).toBeUndefined();
39-
expect(log.infoMock).toBeCalledWith('No Token provided by the client', []);
39+
expect(log.infoMock).toBeCalledWith('No credentials provided by the client', []);
4040
});
4141

4242
test('Should return undefined if there is a invalid basic authorization header', () => {
@@ -47,7 +47,7 @@ describe('AuthService', () => {
4747
});
4848
const token = authService.parseBasicAuthFromRequest(req);
4949
expect(token).toBeUndefined();
50-
expect(log.infoMock).toBeCalledWith('No Token provided by the client', []);
50+
expect(log.infoMock).toBeCalledWith('No credentials provided by the client', []);
5151
});
5252

5353
});

0 commit comments

Comments
 (0)