Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
JaiPannu-IITI committed Feb 18, 2025
1 parent 3eebbcd commit 4061fd7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { disconnect, insertCollections } from "src/utilities/dbManagement/helpers";
import {
disconnect,
insertCollections,
} from "src/utilities/dbManagement/helpers";
import { describe, expect, it, vi } from "vitest";

vi.mock("src/utilities/dbManagement/helpers", () => ({
Expand All @@ -12,7 +15,7 @@ describe("main function", () => {
it("should call populateDB with 'interactive' and disconnect", async () => {
await new Promise((resolve) => setTimeout(resolve, 0));

expect(insertCollections ).toHaveBeenCalledTimes(1);
expect(insertCollections).toHaveBeenCalledTimes(1);
expect(disconnect).toHaveBeenCalledTimes(1);
});
});
4 changes: 2 additions & 2 deletions test/utilities/dbManagement/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import path from "node:path";
import { afterAll, describe, expect, it } from "vitest";

import {
checkDataSize,
disconnect,
ensureAdministratorExists,
insertCollections,
listSampleData,
parseDate,
checkDataSize,
insertCollections
} from "src/utilities/dbManagement/helpers";

import dotenv from "dotenv";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
disconnect,

} from "src/utilities/dbManagement/helpers";
import { disconnect } from "src/utilities/dbManagement/helpers";
import { describe, expect, it, vi } from "vitest";

vi.mock("src/utilities/dbManagement/helpers", () => ({
Expand Down

0 comments on commit 4061fd7

Please sign in to comment.