Skip to content

Commit b0eea01

Browse files
committed
use @bs.uncurry for 'Assert' functions
1 parent 9025387 commit b0eea01

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

src/Assert.re

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,28 @@ external notStrictEqual: ('a, 'a) => unit = "notStrictEqual";
1010
external deepStrictEqual: ('a, 'a) => unit = "deepStrictEqual";
1111
[@bs.module "assert"]
1212
external notDeepStrictEqual: ('a, 'a) => unit = "notDeepStrictEqual";
13-
14-
[@bs.module "assert"] external throws: (unit => 'a) => unit = "throws";
1513
[@bs.module "assert"]
16-
external throwsError: (unit => 'a, 'e) => unit = "throws";
14+
external throws: ([@bs.uncurry] (unit => 'a)) => unit = "throws";
1715
[@bs.module "assert"]
18-
external doesNotThrow: (unit => 'a) => unit = "doesNotThrow";
16+
external throwsError: ([@bs.uncurry] (unit => 'a), 'e) => unit = "throws";
1917
[@bs.module "assert"]
20-
external doesNotThrowError: (unit => 'a, 'e) => unit = "doesNotThrow";
21-
18+
external doesNotThrow: ([@bs.uncurry] (unit => 'a)) => unit = "doesNotThrow";
19+
[@bs.module "assert"]
20+
external doesNotThrowError: ([@bs.uncurry] (unit => 'a), 'e) => unit =
21+
"doesNotThrow";
2222
[@bs.module "assert"] external ifError: 'a => unit = "ifError";
2323
[@bs.module "assert"]
24-
external rejects: (unit => Js.Promise.t('a)) => unit = "rejects";
24+
external rejects: ([@bs.uncurry] (unit => Js.Promise.t('a))) => unit =
25+
"rejects";
2526
[@bs.module "assert"]
26-
external rejectsError: (unit => Js.Promise.t('a), 'e) => unit = "rejects";
27+
external rejectsError: ([@bs.uncurry] (unit => Js.Promise.t('a)), 'e) => unit =
28+
"rejects";
2729
[@bs.module "assert"]
28-
external doesNotReject: (unit => Js.Promise.t('a)) => unit = "doesNotReject";
30+
external doesNotReject: ([@bs.uncurry] (unit => Js.Promise.t('a))) => unit =
31+
"doesNotReject";
2932
[@bs.module "assert"]
30-
external doesNotRejectError: (unit => Js.Promise.t('a), 'e) => unit =
33+
external doesNotRejectError:
34+
([@bs.uncurry] (unit => Js.Promise.t('a)), 'e) => unit =
3135
"doesNotReject";
3236

3337
module AssertionError = Errors.AssertionError;

0 commit comments

Comments
 (0)