Created
January 6, 2021 07:07
-
-
Save JimmyLv/57cc766c77b6117dbf5bc99f677fd871 to your computer and use it in GitHub Desktop.
Created with Copy to Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe('contains test', () => { | |
| it('should return true', () => { | |
| const arr = [ { a: 1 }, { b: 2 }, { c: 3 } ] | |
| expect(arr).toContainEqual( // Compare values only. | |
| { b: 2 } | |
| ) | |
| }) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment