unexpected
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "unexpected", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -113,5 +113,5 @@ (function () { | ||
this.obj.hasOwnProperty(property) && | ||
this.obj[property] === properties[property]); | ||
this.equal(this.obj[property], properties[property])); | ||
} else { | ||
this.assert(this.obj && this.obj[property] === properties[property]); | ||
this.assert(this.obj && this.equal(this.obj[property], properties[property])); | ||
} | ||
@@ -118,0 +118,0 @@ }, this); |
@@ -418,5 +418,5 @@ /*global describe, it, expect*/ | ||
it('asserts absence of a list of properties', function () { | ||
expect({a: 'foo', b: 'bar'}, 'not to have properties', ['c','d']); | ||
expect({a: 'foo', b: 'bar'}, 'not to have properties', ['c', 'd']); | ||
expect(function () { | ||
expect({a: 'foo', b: 'bar'}, 'not to have properties', ['a','d']); | ||
expect({a: 'foo', b: 'bar'}, 'not to have properties', ['a', 'd']); | ||
}, 'to throw', "expected { a: 'foo', b: 'bar' } not to have properties [ 'a', 'd' ]"); | ||
@@ -435,3 +435,7 @@ }); | ||
it('asserts presence and values of an object of properties', function () { | ||
expect({a: 'foo', b: 'bar', c: 'baz'}, 'to have properties', {a: 'foo', b: 'bar'}); | ||
expect({a: 'foo', b: 'bar', c: 'baz', d: { qux: 'qux', quux: 'quux'}}, 'to have properties', { | ||
a: 'foo', | ||
b: 'bar', | ||
d: { qux: 'qux', quux: 'quux'} | ||
}); | ||
expect(function () { | ||
@@ -438,0 +442,0 @@ expect({a: 'foo', b: 'bar'}, 'to have properties', {c: 'baz'}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
256079
5023