Skip to content

Commit

Permalink
Replace null with undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsaykwardell committed Jan 5, 2024
1 parent e0c3e08 commit 5f5d255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/natural-order.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ describe("natural-order", () => {
it("Allows similar API to 0.3.0", () => {
const list = ["a", "b", "c"];

const sorted = naturalOrder(list, null, "desc").sort();
const sorted = naturalOrder(list, undefined, "desc").sort();

expect(sorted).toEqual(["c", "b", "a"]);
});
Expand All @@ -163,7 +163,7 @@ describe("natural-order", () => {

// Alternative syntax

const sorted3 = naturalOrder(list, null, "desc", {
const sorted3 = naturalOrder(list, undefined, "desc", {
caseSensitive: true,
}).sort();

Expand Down

0 comments on commit 5f5d255

Please # to comment.