Codechef4u is a community for computer professionals,by computer professionals,just like you; who loves sharing and helping each others,Join them
Share your post

Answers


Comparing JavaScript two objects ,

describe("Object equality", () => {
    it("should check for object equility", () => {
        var person1 = new Person('nmk', 25);
        var person2 = new Person('nmk', 25);
        //Runs successfully
        expect(person1).toEqual(person2);
    });

Share your answer


Share as a guest

Please subscribe me to the CodeChef4U.

By creating your new answer, you agree to the privacy policy and terms of service.