Answers for "jest array contain object with prop"

1

jest array contain object with prop

expect(state).toEqual(          // 1
  expect.arrayContaining([      // 2
    expect.objectContaining({   // 3
      type: 'END'               // 4
    })
  ])
)
Posted by: Guest on June-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language