diff options
author | HampusM <hampus@hampusmat.com> | 2021-08-14 22:28:17 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-08-14 22:28:17 +0200 |
commit | ddcf71225226bc0929d5c6d609b13ff0489e5b94 (patch) | |
tree | 7f788d29af4441e27d709aaec1359e205871a11b /test/unit/tree.unit.test.ts | |
parent | 81b39ee7848b0fbdcd8b61a04077a58c23580dd1 (diff) |
Revamped backend error handling & improved imports in tests
Diffstat (limited to 'test/unit/tree.unit.test.ts')
-rw-r--r-- | test/unit/tree.unit.test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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() => { |