aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/int/api.int.test.ts7
-rw-r--r--test/unit/repository.unit.test.ts2
2 files changed, 6 insertions, 3 deletions
diff --git a/test/int/api.int.test.ts b/test/int/api.int.test.ts
index e1392d6..ae2804e 100644
--- a/test/int/api.int.test.ts
+++ b/test/int/api.int.test.ts
@@ -16,16 +16,19 @@ describe("API", () => {
let app: FastifyInstance;
beforeAll(async() => {
- app = buildApp({
+ app = await buildApp({
host: host,
port: port,
title: "Bob's cool projects",
about: "All of my personal projects. Completely FOSS.",
git_dir: env.GIT_DIR,
+ cache: {
+ enabled: false
+ },
dev: {
port: 0
}
- });
+ }, null);
await app.listen(port);
diff --git a/test/unit/repository.unit.test.ts b/test/unit/repository.unit.test.ts
index 9aaa748..cb62c4a 100644
--- a/test/unit/repository.unit.test.ts
+++ b/test/unit/repository.unit.test.ts
@@ -86,7 +86,7 @@ describe("Repository", () => {
it("Should get the branch", async() => {
expect.assertions(2);
- const branch = await repository.branch();
+ const branch = await repository.getBranch();
expect(branch).toBeDefined();
expect(branch).toBeInstanceOf(Branch);