File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
test/unit/cmap/wire_protocol Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,11 @@ describe('class MongoDBResponse', () => {
36
36
37
37
expect ( deseriailzeSpy ) . to . have . been . called ;
38
38
39
- const [ _buffer , { validation } ] = deseriailzeSpy . getCalls ( ) [ 0 ] . args ;
39
+ const [
40
+ {
41
+ args : [ _buffer , { validation } ]
42
+ }
43
+ ] = deseriailzeSpy . getCalls ( ) ;
40
44
41
45
expect ( validation ) . to . deep . equal ( { utf8 : { writeErrors : false } } ) ;
42
46
} ) ;
@@ -50,7 +54,11 @@ describe('class MongoDBResponse', () => {
50
54
51
55
expect ( deseriailzeSpy ) . to . have . been . called ;
52
56
53
- const [ _buffer , { validation } ] = deseriailzeSpy . getCalls ( ) [ 0 ] . args ;
57
+ const [
58
+ {
59
+ args : [ _buffer , { validation } ]
60
+ }
61
+ ] = deseriailzeSpy . getCalls ( ) ;
54
62
55
63
expect ( validation ) . to . deep . equal ( { utf8 : { writeErrors : false } } ) ;
56
64
} ) ;
@@ -64,7 +72,11 @@ describe('class MongoDBResponse', () => {
64
72
65
73
expect ( deseriailzeSpy ) . to . have . been . called ;
66
74
67
- const [ _buffer , { validation } ] = deseriailzeSpy . getCalls ( ) [ 0 ] . args ;
75
+ const [
76
+ {
77
+ args : [ _buffer , { validation } ]
78
+ }
79
+ ] = deseriailzeSpy . getCalls ( ) ;
68
80
69
81
expect ( validation ) . to . deep . equal ( { utf8 : false } ) ;
70
82
} ) ;
You can’t perform that action at this time.
0 commit comments