@@ -236,11 +236,16 @@ describe('chai-exclude', () => {
236
236
237
237
it ( 'should also exclude a key from the other object' , ( ) => {
238
238
expect ( { a : 'a' , b : 'b' , c : 'c' } ) . excluding ( 'a' ) . to . deep . equal ( { a : 'z' , b : 'b' , c : 'c' } )
239
- expect ( { a : 'a' , b : 'b' , c : 'c' } ) . excluding ( 'a' ) . to . deep . include ( { a : 'z' , b : 'b' , c : 'c' } )
240
239
} )
241
240
242
- it ( 'should also exclude a key from the other object and contain alias is used' , ( ) => {
243
- expect ( { a : 'a' , b : 'b' , c : 'c' } ) . excluding ( 'a' ) . to . deep . contain ( { a : 'z' , b : 'b' , c : 'c' } )
241
+ it ( 'should also exclude a key from the other object and include(s) is used' , ( ) => {
242
+ expect ( { a : 'a' , b : 'b' , c : 'c' } ) . excluding ( 'a' ) . to . include ( { a : 'z' , b : 'b' , c : 'c' } )
243
+ expect ( { a : 'a' , b : 'b' , c : 'c' } ) . excluding ( 'a' ) . to . includes ( { a : 'z' , b : 'b' , c : 'c' } )
244
+ } )
245
+
246
+ it ( 'should also exclude a key from the other object and contain(s) is used' , ( ) => {
247
+ expect ( { a : 'a' , b : 'b' , c : 'c' } ) . excluding ( 'a' ) . to . contain ( { a : 'z' , b : 'b' , c : 'c' } )
248
+ expect ( { a : 'a' , b : 'b' , c : 'c' } ) . excluding ( 'a' ) . to . contains ( { a : 'z' , b : 'b' , c : 'c' } )
244
249
} )
245
250
246
251
it ( 'should exclude an array of keys from the object' , ( ) => {
0 commit comments