Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
airtoxin committed Nov 17, 2020
1 parent 6e190c2 commit 1d53435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/String.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe("RegExpMatchedString", () => {
});

it("should return Left when value is not matched to regexp", () => {
expect(RegExpMatchedString(/^\w+$/).decode("ab1cd")).toEqual(left);
expect(RegExpMatchedString(/^\w+$/).decode("ab cd")).toEqual(left);
});
});

Expand All @@ -123,7 +123,7 @@ describe("FormattedStringFromDate", () => {
});

it("should return Left when value is invalid date", () => {
const date = new Date(-1, -1, -1);
const date = new Date(1e100);
expect(FormattedStringFromDate("yyyy/MM/dd").decode(date)).toEqual(left);
});
});
Expand Down

0 comments on commit 1d53435

Please sign in to comment.