chore: Test performance (#5786)

This commit is contained in:
Tom Moor
2023-09-06 17:19:21 -04:00
committed by GitHub
parent 3eb947e9a5
commit ec0564eb32
69 changed files with 449 additions and 617 deletions

View File

@@ -6,11 +6,9 @@ import {
buildDocument,
buildCollection,
} from "@server/test/factories";
import { findLatestEvent, setupTestDatabase } from "@server/test/support";
import { findLatestEvent } from "@server/test/support";
import notificationUpdater from "./notificationUpdater";
setupTestDatabase();
describe("notificationUpdater", () => {
const ip = "127.0.0.1";
@@ -48,7 +46,7 @@ describe("notificationUpdater", () => {
transaction,
})
);
const event = await findLatestEvent({});
const event = await findLatestEvent();
expect(notification.viewedAt).not.toBe(null);
expect(notification.archivedAt).toBe(null);