wrapper.vm.toLastWeek() tobe true jest vue js code example Example: expect vue test utils compare objects expect(data).toEqual({uno: 1, dos: 2});