Skip to content

Commit

Permalink
Add tests that will fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Good committed Oct 26, 2020
1 parent 1431a17 commit 6ff06e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/expect/src/__tests__/asymmetricMatchers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,17 @@ test('ObjectContaining matches', () => {
objectContaining({first: objectContaining({second: {}})}).asymmetricMatch({
first: {second: {}},
}),
objectContaining({foo: Buffer.from('foo')}).asymmetricMatch({
foo: Buffer.from('foo'),
jest: 'jest',
}),
objectContaining({foo: {bar: [Buffer.from('foo')]}}).asymmetricMatch({
foo: {
bar: [Buffer.from('foo'), 1],
qux: 'qux',
},
jest: 'jest',
}),
].forEach(test => {
jestExpect(test).toEqual(true);
});
Expand Down

0 comments on commit 6ff06e6

Please sign in to comment.