aboutsummaryrefslogtreecommitdiff
path: root/test/unit/commit.unit.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/commit.unit.test.ts')
-rw-r--r--test/unit/commit.unit.test.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/unit/commit.unit.test.ts b/test/unit/commit.unit.test.ts
index 5f1d29f..f197583 100644
--- a/test/unit/commit.unit.test.ts
+++ b/test/unit/commit.unit.test.ts
@@ -1,6 +1,8 @@
import { Repository } from "server/src/git/repository";
import { Commit } from "server/src/git/commit";
+jest.setTimeout(10000);
+
describe("Commit", () => {
let repository: Repository;
@@ -33,14 +35,11 @@ describe("Commit", () => {
let commit: Commit;
beforeAll(async () => {
- jest.setTimeout(10000);
-
commit = await repository.latestCommit();
});
test("Get stats", async () => {
const getStats = jest.fn(() => commit.stats());
-
await getStats();
expect(getStats).toReturn();