Put in order · JavaScript and TypeScript course · Module 11: Testing with Jest

expect.objectContaining Syntax

Arrange the elements of an assertion checking an object's shape:

Items to put in order

  • }))
  • status: expect.any(String)
  • expect(response).toEqual(
  • expect.objectContaining({

You can check the correct answer by solving this task in the CodeWorlds game.