Skip to content

I was expecting to expect 2 arrays of objects to be the same, but they're not #57

Description

@JimBarrows

I was expecting this to return true. The only difference I can see is that the fields are in a different order. Is there something I'm missing?

expect([{
		__v: 0,
		name: 'First one',
		owner: "582a4aac593bdac822a535b6",
		_id: "582a4aad593bdac822a535b7",
		size: 0,
		cards: []
	},
	{
		__v: 0,
		name: 'SecondOne',
		owner: "582a4aac593bdac822a535b6",
		_id: "582a4aad593bdac822a535b8",
		size: 0,
		cards: []
	}
]).to.include.all.that.deep.equals([
	{
		_id: '582a4aad593bdac822a535b7',
		name: 'First one',
		owner: '582a4aac593bdac822a535b6',
		__v: 0,
		size: 0,
		cards: []
	},
	{
		_id: '582a4aad593bdac822a535b8',
		name: 'SecondOne',
		owner: '582a4aac593bdac822a535b6',
		__v: 0,
		size: 0,
		cards: []
	}
]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions