jasmine-expect
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -1710,4 +1710,4 @@ (function e(t, n, r) { | ||
var is = require('./lib/is'); | ||
var toBeObject = require('./toBeObject'); | ||
var toHaveMember = require('./toHaveMember'); | ||
@@ -1724,3 +1724,3 @@ module.exports = toImplement; | ||
for (var key in api) { | ||
if (!actual[key] || actual[key].constructor !== api[key]) { | ||
if (!toHaveMember(key, actual) || actual[key].constructor !== api[key]) { | ||
return false; | ||
@@ -1733,4 +1733,4 @@ } | ||
}, { | ||
'./lib/is': 8, | ||
'./toBeObject': 36 | ||
'./toBeObject': 36, | ||
'./toHaveMember': 65 | ||
}], | ||
@@ -1737,0 +1737,0 @@ 82: [function(require, module, exports) { |
{ | ||
"name": "jasmine-expect", | ||
"description": "Additional matchers for the Jasmine BDD JavaScript testing library", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": "Jamie Mason (https://github.com/JamieMason)", | ||
@@ -6,0 +6,0 @@ "authors": [ |
'use strict'; | ||
var is = require('./lib/is'); | ||
var toBeObject = require('./toBeObject'); | ||
var toHaveMember = require('./toHaveMember'); | ||
@@ -16,3 +16,3 @@ module.exports = toImplement; | ||
for (var key in api) { | ||
if (!actual[key] || actual[key].constructor !== api[key]) { | ||
if (!toHaveMember(key, actual) || actual[key].constructor !== api[key]) { | ||
return false; | ||
@@ -19,0 +19,0 @@ } |
Sorry, the diff of this file is too big to display
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
5075
236789
97