Skip to content

Commit

Permalink
test: update test for null fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ngshiheng committed Oct 27, 2023
1 parent fa9dce6 commit 9232d0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,13 @@ describe("createEventDescription", () => {
expect(description).toBe(expectedDescription);
});

it("should create an event description with missing fields omitted", () => {
it("should create an event description without null fields", () => {
const recordWithMissingFields = {
issue_code: "ABC123",
isin_code: "XYZ987",
ann_date: "2023-10-20",
auction_tenor: "5",
maturity_date: null,
};

const expectedDescription = `<b>Announcement Date</b>: 2023-10-20
Expand Down

0 comments on commit 9232d0d

Please sign in to comment.