@@ -171,21 +171,21 @@ module Runner = (A: Asserter) => {
171
171
)
172
172
173
173
let testAll = (name , inputs , callback ) => List .iter (input => {
174
- let name = j ` $ name - $input`
174
+ let name = ` ${ name} - ${ input-> Js.String.make} `
175
175
_test (name , () => {
176
176
affirm (callback (input ))
177
177
Js .undefined
178
178
})
179
179
}, inputs )
180
-
180
+
181
181
let testAllPromise = (name : string , inputs , ~timeout = ?, callback ) => List .iter (input => {
182
- let name = j ` $ name - $input`
183
- _testPromise (
184
- name ,
185
- () => Promise .then (callback (input ), a => a -> A .affirm -> Promise .resolve ),
186
- Js .Undefined .fromOption (timeout )
187
- )
188
- }, inputs )
182
+ let name = ` ${ name} - ${ input-> Js.String.make} `
183
+ _testPromise (
184
+ name ,
185
+ () => Promise .then (callback (input ), a => a -> A .affirm -> Promise .resolve ),
186
+ Js .Undefined .fromOption (timeout ),
187
+ )
188
+ }, inputs )
189
189
190
190
@val external describe : (string , @uncurry (unit => Js .undefined <unit >)) => unit = "describe"
191
191
let describe = (label , f ) =>
@@ -291,21 +291,21 @@ module Runner = (A: Asserter) => {
291
291
)
292
292
293
293
let testAll = (name , inputs , callback ) => List .iter (input => {
294
- let name = j ` $ name - $input`
294
+ let name = ` ${ name} - ${ input-> Js.String.make} `
295
295
_test (name , () => {
296
296
affirm (callback (input ))
297
297
Js .undefined
298
298
})
299
299
}, inputs )
300
-
300
+
301
301
let testAllPromise = (name , inputs , ~timeout = ?, callback ) => List .iter (input => {
302
- let name = j ` $ name - $input`
303
- _testPromise (
304
- name ,
305
- () => Promise .then (callback (input ), a => a -> A .affirm -> Promise .resolve ),
306
- Js .Undefined .fromOption (timeout )
307
- )
308
- }, inputs )
302
+ let name = ` ${ name} - ${ input-> Js.String.make} `
303
+ _testPromise (
304
+ name ,
305
+ () => Promise .then (callback (input ), a => a -> A .affirm -> Promise .resolve ),
306
+ Js .Undefined .fromOption (timeout ),
307
+ )
308
+ }, inputs )
309
309
310
310
@val
311
311
external describe : (string , @uncurry (unit => Js .undefined <unit >)) => unit = "describe.only"
@@ -324,11 +324,11 @@ module Runner = (A: Asserter) => {
324
324
external testPromise : (string , @uncurry (unit => promise <A .t <'a >>)) => unit = "it.skip"
325
325
let testPromise = (name , ~timeout as _ = ?, callback ) => testPromise (name , callback )
326
326
let testAll = (name , inputs , callback ) => List .iter (input => {
327
- let name = j ` $ name - $input`
327
+ let name = ` ${ name} - ${ input-> Js.String.make} `
328
328
test (name , () => callback (input ))
329
329
}, inputs )
330
330
let testAllPromise = (name , inputs , ~timeout as _ = ?, callback ) => List .iter (input => {
331
- let name = j ` $ name - $input`
331
+ let name = ` ${ name} - ${ input-> Js.String.make} `
332
332
testPromise (name , () => callback (input ))
333
333
}, inputs )
334
334
@val
0 commit comments