Skip to content

Instantly share code, notes, and snippets.

@Dunkelheit
Last active October 29, 2020 11:17
Show Gist options
  • Save Dunkelheit/8e6ddb8226618ef9a4698091754fedda to your computer and use it in GitHub Desktop.
Save Dunkelheit/8e6ddb8226618ef9a4698091754fedda to your computer and use it in GitHub Desktop.
deep.equal.2
describe('A person', () => {
it('Has all the right properties and values', () => {
expect(person).to.be.an('object').and.have.keys('guid', 'name', 'company', 'email', 'phone',
'isActive', 'age', 'gender');
expect(person.guid).to.equal('79c936b0-c75f-4b09-b53e-8d7822bbe17b');
expect(person.name).to.equal('Mcguire English');
expect(person.company).to.equal('ZILLAR');
expect(person.email).to.equal('[email protected]');
expect(person.phone).to.equal('+1 (555) 555-5555');
expect(person.isActive).to.equal(true);
expect(person.age).to.equal(35);
expect(person.gender).to.equal('male');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment