fixed failing test

This commit is contained in:
Miodec 2022-09-07 13:53:34 +02:00
parent 5bf0c9a951
commit e9c6534c39

View file

@ -1,6 +1,6 @@
import _ from "lodash";
import { ObjectId } from "mongodb";
import { updateStreak } from "../../src/api/controllers/user";
import { updateStreak } from "../../src/dal/user";
import * as UserDAL from "../../src/dal/user";
const mockPersonalBest = {
@ -492,6 +492,7 @@ describe("UserDal", () => {
expect(resetUser.streak).toStrictEqual({
length: 0,
lastResultTimestamp: 0,
maxLength: 0,
});
});