diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-07 18:03:51 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-07 18:03:51 +0200 |
commit | 66022d5546b32b6ec0dde12f581bfad0c8fcdc18 (patch) | |
tree | 72d22ed214dde863012f841764b4339dd73f808c | |
parent | 86daa8aff22ff378c5e6cbf10f92dc3823fa2ccd (diff) |
Moved the Jest setTimeout to the top of the commit unit test
-rw-r--r-- | test/unit/commit.unit.test.ts | 5 |
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(); |