mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
chore(deps): update typeorm
This commit is contained in:
parent
9900bc641d
commit
ef84800ce8
22 changed files with 232 additions and 242 deletions
|
|
@ -248,7 +248,7 @@ describe("AuthService", () => {
|
|||
beforeEach(() => {
|
||||
session = { id: "AUTH_SESSION" } as AuthSession;
|
||||
|
||||
authSessionRepository.findOne = jest.fn().mockResolvedValue(session);
|
||||
authSessionRepository.findOneBy = jest.fn().mockResolvedValue(session);
|
||||
});
|
||||
|
||||
it("returns the session", async () => {
|
||||
|
|
@ -256,10 +256,10 @@ describe("AuthService", () => {
|
|||
session
|
||||
);
|
||||
|
||||
expect(authSessionRepository.findOne).toHaveBeenCalledTimes(1);
|
||||
expect(authSessionRepository.findOne).toHaveBeenLastCalledWith(
|
||||
"AUTH_SESSION"
|
||||
);
|
||||
expect(authSessionRepository.findOneBy).toHaveBeenCalledTimes(1);
|
||||
expect(authSessionRepository.findOneBy).toHaveBeenLastCalledWith({
|
||||
id: "AUTH_SESSION",
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue