@@ -60,25 +60,25 @@ exports[`asymmetric matcher error 5`] = `
60
60
{
61
61
" actual" : " hello" ,
62
62
" diff" : " - Expected:
63
- stringContainingCustom <xx >
63
+ stringContainingCustom < " xx " >
64
64
65
65
+ Received :
66
66
" hello" " ,
67
- "expected": "stringContainingCustom<xx >",
68
- "message": "expected 'hello' to deeply equal stringContainingCustom<xx >",
67
+ " expected" : " stringContainingCustom<" xx " >" ,
68
+ " message" : " expected 'hello' to deeply equal stringContainingCustom<" xx " >" ,
69
69
}
70
70
` ;
71
71
72
72
exports [` asymmetric matcher error 6` ] = `
73
73
{
74
74
" actual" : " hello" ,
75
75
" diff" : " - Expected:
76
- not .stringContainingCustom <ll >
76
+ not .stringContainingCustom < " ll " >
77
77
78
78
+ Received :
79
79
" hello" " ,
80
- "expected": "not.stringContainingCustom<ll >",
81
- "message": "expected 'hello' to deeply equal not.stringContainingCustom<ll >",
80
+ " expected" : " not.stringContainingCustom<" ll " >" ,
81
+ " message" : " expected 'hello' to deeply equal not.stringContainingCustom<" ll " >" ,
82
82
}
83
83
` ;
84
84
@@ -91,13 +91,13 @@ exports[`asymmetric matcher error 7`] = `
91
91
+ Received
92
92
93
93
{
94
- - " foo" : stringContainingCustom <xx >,
94
+ - " foo" : stringContainingCustom < " xx " > ,
95
95
+ " foo" : " hello" ,
96
96
} ",
97
97
"expected": "Object {
98
- " foo" : stringContainingCustom <xx >,
98
+ " foo" : stringContainingCustom < " xx " > ,
99
99
} ",
100
- "message": "expected { foo : ' hello' } to deeply equal { foo : stringContainingCustom <xx > }",
100
+ "message": "expected { foo : ' hello' } to deeply equal { foo : stringContainingCustom < " xx " > } ",
101
101
}
102
102
` ;
103
103
@@ -110,13 +110,13 @@ exports[`asymmetric matcher error 8`] = `
110
110
+ Received
111
111
112
112
{
113
- - " foo" : not .stringContainingCustom <ll >,
113
+ - " foo" : not .stringContainingCustom < " ll " > ,
114
114
+ " foo" : " hello" ,
115
115
} ",
116
116
"expected": "Object {
117
- " foo" : not .stringContainingCustom <ll >,
117
+ " foo" : not .stringContainingCustom < " ll " > ,
118
118
} ",
119
- "message": "expected { foo : ' hello' } to deeply equal { foo : not .stringContainingCustom < ll > }",
119
+ "message": "expected { foo : ' hello' } to deeply equal { foo : not .stringContainingCustom {…} } ",
120
120
}
121
121
` ;
122
122
@@ -142,12 +142,16 @@ exports[`asymmetric matcher error 11`] = `
142
142
{
143
143
" actual" : " hello" ,
144
144
" diff" : " - Expected:
145
- testComplexMatcher < [object Object ]>
145
+ testComplexMatcher < Object {
146
+ " x" : " y" ,
147
+ }>
146
148
147
149
+ Received :
148
150
" hello" " ,
149
- " expected" : " testComplexMatcher<[object Object]>" ,
150
- " message" : " expected 'hello' to deeply equal testComplexMatcher<[object Object]>" ,
151
+ " expected" : " testComplexMatcher<Object {
152
+ " x" : " y" ,
153
+ } >",
154
+ "message": "expected 'hello' to deeply equal testComplexMatcher{ …} ",
151
155
}
152
156
` ;
153
157
@@ -220,6 +224,82 @@ exports[`asymmetric matcher error 15`] = `
220
224
` ;
221
225
222
226
exports [` asymmetric matcher error 16` ] = `
227
+ {
228
+ " actual" : " foo" ,
229
+ " diff" : " - Expected:
230
+ toBeOneOf < Array [
231
+ " bar" ,
232
+ " baz" ,
233
+ ]>
234
+
235
+ + Received :
236
+ " foo" " ,
237
+ " expected" : " toBeOneOf<Array [
238
+ " bar" ,
239
+ " baz" ,
240
+ ]> " ,
241
+ " message" : " expected 'foo' to deeply equal toBeOneOf<Array [
242
+ " bar" ,
243
+ " baz" ,
244
+ ]> " ,
245
+ }
246
+ ` ;
247
+
248
+ exports [` asymmetric matcher error 17` ] = `
249
+ {
250
+ " actual" : " 0" ,
251
+ " diff" : " - Expected:
252
+ toBeOneOf < Array [
253
+ Any <String >,
254
+ null,
255
+ undefined,
256
+ ]>
257
+
258
+ + Received:
259
+ 0",
260
+ "expected": "toBeOneOf<Array [
261
+ Any<String>,
262
+ null,
263
+ undefined,
264
+ ]>",
265
+ " message" : " expected +0 to deeply equal toBeOneOf{…}" ,
266
+ }
267
+ `;
268
+
269
+ exports[`asymmetric matcher error 18`] = `
270
+ {
271
+ " actual" : " Object {
272
+ " k" : " v" ,
273
+ " k2" : " v2" ,
274
+ } " ,
275
+ " diff": " - Expected:
276
+ toBeOneOf<Array [
277
+ ObjectContaining {
278
+ " k": " v" ,
279
+ " k3" : " v3" ,
280
+ },
281
+ null,
282
+ undefined,
283
+ ]>
284
+
285
+ + Received:
286
+ {
287
+ " k" : " v" ,
288
+ " k2" : " v2" ,
289
+ } " ,
290
+ " expected": " toBeOneOf<Array [
291
+ ObjectContaining {
292
+ " k": " v" ,
293
+ " k3" : " v3" ,
294
+ },
295
+ null,
296
+ undefined,
297
+ ]>",
298
+ " message" : " expected { k: 'v', k2: 'v2' } to deeply equal toBeOneOf{…}" ,
299
+ }
300
+ `;
301
+
302
+ exports[`asymmetric matcher error 19`] = `
223
303
{
224
304
" actual" : " hello" ,
225
305
" diff" : undefined ,
@@ -228,7 +308,7 @@ exports[`asymmetric matcher error 16`] = `
228
308
}
229
309
`;
230
310
231
- exports[`asymmetric matcher error 17 `] = `
311
+ exports[`asymmetric matcher error 20 `] = `
232
312
{
233
313
" actual" : " hello" ,
234
314
" diff" : undefined ,
@@ -237,20 +317,20 @@ exports[`asymmetric matcher error 17`] = `
237
317
}
238
318
`;
239
319
240
- exports[`asymmetric matcher error 18 `] = `
320
+ exports[`asymmetric matcher error 21 `] = `
241
321
{
242
322
" actual" : " hello" ,
243
323
" diff" : " - Expected:
244
- stringContainingCustom <xx >
324
+ stringContainingCustom < " xx " >
245
325
246
326
+ Received :
247
327
" hello" " ,
248
- "expected": "stringContainingCustom<xx >",
328
+ " expected" : " stringContainingCustom<" xx " >" ,
249
329
" message" : " expected error to match asymmetric matcher" ,
250
330
}
251
331
`;
252
332
253
- exports[`asymmetric matcher error 19 `] = `
333
+ exports[`asymmetric matcher error 22 `] = `
254
334
{
255
335
" actual" : " hello" ,
256
336
" diff" : undefined ,
@@ -259,20 +339,20 @@ exports[`asymmetric matcher error 19`] = `
259
339
}
260
340
`;
261
341
262
- exports[`asymmetric matcher error 20 `] = `
342
+ exports[`asymmetric matcher error 23 `] = `
263
343
{
264
344
" actual" : " hello" ,
265
345
" diff" : " - Expected:
266
- stringContainingCustom <ll >
346
+ stringContainingCustom < " ll " >
267
347
268
348
+ Received :
269
349
" hello" " ,
270
- "expected": "stringContainingCustom<ll >",
350
+ " expected" : " stringContainingCustom<" ll " >" ,
271
351
" message" : " expected error not to match asymmetric matcher" ,
272
352
}
273
353
`;
274
354
275
- exports[`asymmetric matcher error 21 `] = `
355
+ exports[`asymmetric matcher error 24 `] = `
276
356
{
277
357
" actual" : " [Error: hello]" ,
278
358
" diff" : " - Expected:
@@ -287,22 +367,22 @@ Error {
287
367
}
288
368
`;
289
369
290
- exports[`asymmetric matcher error 22 `] = `
370
+ exports[`asymmetric matcher error 25 `] = `
291
371
{
292
372
" actual" : " [Error: hello]" ,
293
373
" diff" : " - Expected:
294
- stringContainingCustom <ll >
374
+ stringContainingCustom < " ll " >
295
375
296
376
+ Received :
297
377
Error {
298
378
" message" : " hello" ,
299
379
}" ,
300
- "expected": "stringContainingCustom<ll >",
380
+ " expected" : " stringContainingCustom<" ll " >" ,
301
381
" message" : " expected error to match asymmetric matcher" ,
302
382
}
303
383
`;
304
384
305
- exports[`asymmetric matcher error 23 `] = `
385
+ exports[`asymmetric matcher error 26 `] = `
306
386
{
307
387
" actual" : " [Error: hello]" ,
308
388
" diff" : " - Expected:
@@ -626,6 +706,98 @@ exports[`error equality 13`] = `
626
706
}
627
707
`;
628
708
709
+ exports[`toBeOneOf() > error message 1`] = `
710
+ {
711
+ " actual" : " undefined" ,
712
+ " diff" : undefined ,
713
+ " expected" : " undefined" ,
714
+ " message" : " expect(received).toBeOneOf()
715
+
716
+ Expected value to be one of :
717
+ Array [
718
+ 0 ,
719
+ 1 ,
720
+ 2 ,
721
+ ]
722
+
723
+ Received :
724
+ 3 " ,
725
+ }
726
+ `;
727
+
728
+ exports[`toBeOneOf() > error message 2`] = `
729
+ {
730
+ " actual" : " undefined" ,
731
+ " diff" : undefined ,
732
+ " expected" : " undefined" ,
733
+ " message" : " expect(received).toBeOneOf()
734
+
735
+ Expected value to be one of :
736
+ Array [
737
+ Any <String >,
738
+ ]
739
+
740
+ Received:
741
+ 3",
742
+ }
743
+ `;
744
+
745
+ exports[`toBeOneOf() > error message 3`] = `
746
+ {
747
+ " actual" : " Object {
748
+ " a" : 0 ,
749
+ } ",
750
+ "diff": "- Expected:
751
+ toBeOneOf<Array [
752
+ ObjectContaining {
753
+ " b" : 0 ,
754
+ } ,
755
+ null,
756
+ undefined,
757
+ ]>
758
+
759
+ + Received:
760
+ {
761
+ " a" : 0 ,
762
+ } " ,
763
+ " expected": " toBeOneOf<Array [
764
+ ObjectContaining {
765
+ " b": 0,
766
+ },
767
+ null,
768
+ undefined,
769
+ ]>",
770
+ " message" : " expected { a: +0 } to deeply equal toBeOneOf{…}" ,
771
+ }
772
+ `;
773
+
774
+ exports[`toBeOneOf() > error message 4`] = `
775
+ {
776
+ " actual" : " Object {
777
+ " name" : " mango" ,
778
+ } ",
779
+ "diff": "- Expected
780
+ + Received
781
+
782
+ {
783
+ - " name" : toBeOneOf < Array [
784
+ - " apple" ,
785
+ - " banana" ,
786
+ - " orange" ,
787
+ - ]> ,
788
+ + " name" : " mango" ,
789
+ } ",
790
+ "expected": "Object {
791
+ " name" : toBeOneOf < Array [
792
+ " apple" ,
793
+ " banana" ,
794
+ " orange" ,
795
+ ]> ,
796
+ } ",
797
+ "message": "expected { name : ' mango' } to deeply equal { name : toBeOneOf {…} } ",
798
+ }
799
+ `;
800
+
629
801
exports[`toHaveBeenNthCalledWith error 1`] = `
630
802
{
631
803
" actual" : " Array [
@@ -728,13 +900,13 @@ exports[`toSatisfy() > error message 3`] = `
728
900
+ Received
729
901
730
902
{
731
- - " value" : toSatisfy < ( value ) => value % 2 !== 0 > ,
903
+ - " value" : toSatisfy < [ Function isOdd ] > ,
732
904
+ " value" : 2 ,
733
905
} ",
734
906
"expected": "Object {
735
- " value" : toSatisfy < ( value ) => value % 2 !== 0 > ,
907
+ " value" : toSatisfy < [ Function isOdd ] > ,
736
908
} ",
737
- "message": "expected { value : 2 } to deeply equal { value : toSatisfy {…} } ",
909
+ "message": "expected { value : 2 } to deeply equal { value : toSatisfy < [ Function isOdd ] > } ",
738
910
}
739
911
`;
740
912
@@ -747,11 +919,11 @@ exports[`toSatisfy() > error message 4`] = `
747
919
+ Received
748
920
749
921
{
750
- - " value" : toSatisfy < ( value ) => value % 2 !== 0 , ODD > ,
922
+ - " value" : toSatisfy < [ Function isOdd ], " ODD" > ,
751
923
+ " value" : 2 ,
752
924
} ",
753
925
"expected": "Object {
754
- " value" : toSatisfy < ( value ) => value % 2 !== 0 , ODD > ,
926
+ " value" : toSatisfy < [ Function isOdd ], " ODD" > ,
755
927
} ",
756
928
"message": "expected { value : 2 } to deeply equal { value : toSatisfy {…} } ",
757
929
}
0 commit comments