WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 9ada3d1

Browse files
committed
Update rescript and rescript-ava versions
1 parent 0686a22 commit 9ada3d1

File tree

8 files changed

+53
-95
lines changed

8 files changed

+53
-95
lines changed

__tests__/GhIssue8_test.res

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@ test("Regression test", t => {
2929
"limit": s.field("limit", S.option(S.float->S.Float.min(1., ~message="Number must be greater than or equal to 1"))->S.Option.getOr(%raw(\`100\`))),
3030
}
3131
)->S.Object.strict`,
32-
(),
3332
)
3433
})

__tests__/JSONSchema7_test.res

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,31 @@ test("Arrayable", t => {
44
t->Assert.deepEqual(
55
JSONSchema7.Arrayable.array([1, 2])->JSONSchema7.Arrayable.classify,
66
JSONSchema7.Arrayable.Array([1, 2]),
7-
(),
87
)
98
t->Assert.deepEqual(
109
JSONSchema7.Arrayable.single(1)->JSONSchema7.Arrayable.classify,
1110
JSONSchema7.Arrayable.Single(1),
12-
(),
1311
)
1412
})
1513

1614
test("Definition", t => {
1715
t->Assert.deepEqual(
1816
JSONSchema7.Definition.schema({title: "foo"})->JSONSchema7.Definition.classify,
1917
JSONSchema7.Definition.Schema({title: "foo"}),
20-
(),
2118
)
2219
t->Assert.deepEqual(
2320
JSONSchema7.Definition.boolean(true)->JSONSchema7.Definition.classify,
2421
JSONSchema7.Definition.Boolean(true),
25-
(),
2622
)
2723
})
2824

2925
test("Dependency", t => {
3026
t->Assert.deepEqual(
3127
JSONSchema7.Dependency.schema({title: "foo"})->JSONSchema7.Dependency.classify,
3228
JSONSchema7.Dependency.Schema({title: "foo"}),
33-
(),
3429
)
3530
t->Assert.deepEqual(
3631
JSONSchema7.Dependency.required(["field1", "field2"])->JSONSchema7.Dependency.classify,
3732
JSONSchema7.Dependency.Required(["field1", "field2"]),
38-
(),
3933
)
4034
})

0 commit comments

Comments
 (0)