Skip to content

Commit

Permalink
WIP4
Browse files Browse the repository at this point in the history
  • Loading branch information
knocte committed Sep 9, 2024
1 parent 81dfef3 commit b001275
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commitlint/tests/testHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ test("testing TypeHelpers.IsInstanceOf", () => {
test("testing TypeHelpers.IsInstanceOf exceptions", () => {
let strNull = null;
expect(() => TypeHelpers.IsInstanceOf(strNull, String)).toThrowError("Invalid");
expect(() => TypeHelpers.IsInstanceOf(strNull, String)).toThrowError("parameter");
expect(() => TypeHelpers.IsInstanceOf(strNull, String)).toThrowError("null");
let strUndefined = undefined;
expect(() => TypeHelpers.IsInstanceOf(strUndefined, String)).toThrowError("Invalid");
expect(() => TypeHelpers.IsInstanceOf(strUndefined, String)).toThrowError("parameter");
expect(() => TypeHelpers.IsInstanceOf(strUndefined, String)).toThrowError("undefined");
});

export function runCommitLintOnMsg(inputMsg: string) {
Expand Down

0 comments on commit b001275

Please sign in to comment.