Skip to content

Commit

Permalink
test(util): verify mentioned refs supports null
Browse files Browse the repository at this point in the history
This was a bug #175. Let's make sure it doesn't happen again.
  • Loading branch information
korthout committed Dec 24, 2021
1 parent e70ae85 commit adc4d02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { getMentionedIssueRefs, composeBody } from "../utils";

describe("get mentioned issues", () => {
describe("returns an empty list", () => {
it("for an null text", () => {
expect(getMentionedIssueRefs(null)).toHaveLength(0);
});

it("for an empty text", () => {
expect(getMentionedIssueRefs("")).toHaveLength(0);
});
Expand Down

0 comments on commit adc4d02

Please sign in to comment.