From ddcf71225226bc0929d5c6d609b13ff0489e5b94 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 14 Aug 2021 22:28:17 +0200 Subject: Revamped backend error handling & improved imports in tests --- test/unit/tree.unit.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/unit/tree.unit.test.ts') diff --git a/test/unit/tree.unit.test.ts b/test/unit/tree.unit.test.ts index 1754e7a..737aceb 100644 --- a/test/unit/tree.unit.test.ts +++ b/test/unit/tree.unit.test.ts @@ -1,7 +1,7 @@ import { Repository } from "server/src/git/repository"; import { Tree } from "server/src/git/tree"; import { BaseTreeEntry, BlobTreeEntry, TreeEntry } from "server/src/git/tree_entry"; -import { BaseError } from "server/src/git/error"; +import { ServerError } from "server/src/git/error"; import { EnvironmentVariables } from "../util"; import { extract, Headers } from "tar-stream"; @@ -51,7 +51,7 @@ describe("Tree", () => { it("Should fail to return the entry of a nonexistent path", async() => { expect.assertions(1); - await expect(tree.find("dependencies/libstd++")).rejects.toBeInstanceOf(BaseError); + await expect(tree.find("dependencies/libstd++")).rejects.toBeInstanceOf(ServerError); }); it("Should find out if an existent path exists and return true", async() => { -- cgit v1.2.3-18-g5258