Skip to content

Commit

Permalink
remove an outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cometkim committed Aug 22, 2024
1 parent a1fffc1 commit 9329eff
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tests/vi.test.res
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,7 @@ describe("Vi", () => {

let date = Js.Date.makeWithYMD(~year=2021., ~month=1., ~date=1., ())
let _ = Vi.setSystemTime(#Date(date))
// FIXME: Expect.toBeSome is not working
/*
AssertionError: expected 2021-02-01T05:00:00.000Z to not deeply equal 2021-02-01T05:00:00.000Z
❯ Object.toBeSome src/Vitest.mjs:671:21
669| expected.not.toBeUndefined();
670| if (some !== undefined) {
671| return expected.toEqual(Caml_option.valFromOption(some));
| ^
672| }
*/
Vi.getMockedSystemTime()->Belt.Option.getExn->expect->Expect.toStrictEqual(date)
Vi.getMockedSystemTime()->expect->Expect.toBeSome(~some=Some(date))
Vi.getRealSystemTime()->expect->Expect.Float.toBeGreaterThan(Js.Date.getTime(date))

Vi.getRealSystemTime()->expect->Expect.Float.toBeGreaterThanOrEqual(0.0)
Expand Down

0 comments on commit 9329eff

Please sign in to comment.