Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl committed Dec 15, 2023
1 parent 68a8f73 commit e09e6db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Option.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test("Option.flatMap", () => {

test("Option.filter", () => {
const isOne = (value: number): value is 1 => value === 1;
expect(Option.Some(1).filter((x) => x === 2)).toEqual(Option.None);
expect(Option.Some(1).filter((x) => x === 2)).toEqual(Option.None());
expect(Option.Some(1).filter((x) => x === 1)).toEqual(Option.Some(1));
expect(Option.Some(1).filter(isOne)).toEqual(Option.Some(1));
});
Expand Down

0 comments on commit e09e6db

Please sign in to comment.