Put in order · JavaScript and TypeScript course · Module 11: Testing with Jest
Syntax of expect with toEqual
Arrange the elements of an assertion comparing an object:
Items to put in order
- expect(
- name: 'Rex' })
- ).toEqual({
- dinosaur
You can check the correct answer by solving this task in the CodeWorlds game.