Last active
October 29, 2020 11:17
-
-
Save Dunkelheit/8e6ddb8226618ef9a4698091754fedda to your computer and use it in GitHub Desktop.
deep.equal.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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