remove files
This commit is contained in:
1 parent
c7046be642
commit
3b738100ec
3 files changed
-951
No files matched your search
@@ -1,17 +0,0 @@
|
||||
import ApiError from "@/utils/ApiError.js";
|
||||
|
||||
describe("ApiError", () => {
|
||||
it("captures message and status", () => {
|
||||
const error = new ApiError("boom", 418);
|
||||
expect(error).toBeInstanceOf(Error);
|
||||
expect(error.message).toBe("boom");
|
||||
expect(error.status).toBe(418);
|
||||
expect(error.name).toBe("ApiError");
|
||||
});
|
||||
|
||||
it("defaults status to 500", () => {
|
||||
const error = new ApiError("failure");
|
||||
expect(error.status).toBe(500);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user