File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ describe('MongoErrors', () => {
99
99
expect ( err ) . to . be . an . instanceof ( Error ) ;
100
100
expect ( err . name ) . to . equal ( 'MongoError' ) ;
101
101
expect ( err . message ) . to . equal ( errorMessage ) ;
102
- expect ( err ) . to . have . property ( 'cause' , inputError ) ;
102
+ expect ( err ) . to . not . have . property ( 'cause' ) ;
103
103
} ) ;
104
104
} ) ;
105
105
@@ -169,7 +169,7 @@ describe('MongoErrors', () => {
169
169
context ( 'when options.cause is not set' , ( ) => {
170
170
it ( 'attaches the cause property to the instance' , ( ) => {
171
171
const error = new MongoMissingDependencyError ( 'missing!' , { cause : undefined } ) ;
172
- expect ( error ) . to . not . have . property ( 'cause' ) ;
172
+ expect ( error ) . to . have . property ( 'cause' ) . that . is . undefined ;
173
173
} ) ;
174
174
} ) ;
175
175
} ) ;
You can’t perform that action at this time.
0 commit comments