Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DZakh committed Sep 10, 2024
1 parent f4989bd commit e321ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tests/src/core/S_option_test.res
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ test("Applies valFromOption for Some()", t => {
})

test("Doesn't apply valFromOption for non-undefined literals in option", t => {
let schema: S.t<option<Js.Null.t<unknown>>> = S.option(S.literal(%raw(`null`)))
let schema: S.t<option<Null.t<unknown>>> = S.option(S.literal(%raw(`null`)))

// Note: It'll fail without a type annotation, but we can't do anything here
t->Assert.deepEqual(Some(%raw(`null`))->S.serializeToUnknownWith(schema), Ok(%raw(`null`)), ())
Expand Down

0 comments on commit e321ec0

Please sign in to comment.