Skip to content

Commit

Permalink
fix: improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
BelfordZ committed Mar 18, 2020
1 parent 6b86f83 commit 072d36f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/method-call-validator/parameter-validation-error.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ describe("ParameterValidationError", () => {
const error = new ParameterValidationError(1, { type: "number" }, "hey mom", [errorObj]);
expect(error).toBeInstanceOf(ParameterValidationError);
});

it("works when passed an object key instead of array index", () => {
const error = new ParameterValidationError("foo", { type: "number" }, "hey mom", [errorObj]);
expect(error).toBeInstanceOf(ParameterValidationError);
});
});

0 comments on commit 072d36f

Please # to comment.