diff options
Diffstat (limited to 'src/errors.test.ts')
| -rw-r--r-- | src/errors.test.ts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/errors.test.ts b/src/errors.test.ts new file mode 100644 index 0000000..235c0d2 --- /dev/null +++ b/src/errors.test.ts @@ -0,0 +1,27 @@ +import { InvalidReportDocumentError, BranchNotFoundError } from "./errors"; + +describe("InvalidReportDocumentError", () => { + it("should have the correct name and default message", () => { + // Arrange + + // Act + const err = new InvalidReportDocumentError(); + + // Assert + expect(err.name).toEqual("InvalidReportDocumentError"); + expect(err.message).toEqual("Invalid report document"); + }); +}); + +describe("BranchNotFoundError", () => { + it("should have the correct name and default message", () => { + // Arrange + + // Act + const err = new BranchNotFoundError(); + + // Assert + expect(err.name).toEqual("BranchNotFoundError"); + expect(err.message).toEqual("Branch not found"); + }); +}); |
