Fix tests for toEqual diff output in IE

- Merges #1236 from @benchristel
This commit is contained in:
Ben Christel
2016-11-20 12:12:37 -08:00
committed by Gregg Van Hove
parent 54e7a82ef3
commit 41a813521b
4 changed files with 47 additions and 8 deletions

View File

@@ -100,8 +100,8 @@ describe("jasmineUnderTest.pp", function () {
});
it("should print 'null' as the constructor of an object with its own constructor property", function() {
expect(jasmineUnderTest.pp({constructor: function() {}})).toEqual("null({ constructor: Function })");
expect(jasmineUnderTest.pp({constructor: 'foo'})).toEqual("null({ constructor: 'foo' })");
expect(jasmineUnderTest.pp({constructor: function() {}})).toContain("null({");
expect(jasmineUnderTest.pp({constructor: 'foo'})).toContain("null({");
});
it("should not include inherited properties when stringifying an object", function() {