Skip to content

Commit 20e656a

Browse files
committed
chore: separate test for include and contains
1 parent 0075d89 commit 20e656a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

chai-exclude.test.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,16 @@ describe('chai-exclude', () => {
236236

237237
it('should also exclude a key from the other object', () => {
238238
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' })
240239
})
241240

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' })
244249
})
245250

246251
it('should exclude an array of keys from the object', () => {

0 commit comments

Comments
 (0)