jasmine-expect
Advanced tools
Comparing version 3.5.0 to 3.6.0
@@ -0,3 +1,13 @@ | ||
<a name="3.6.0"></a> | ||
# [3.6.0](https://github.com/JamieMason/Jasmine-Matchers/compare/3.5.0...v3.6.0) (2017-01-31) | ||
### Features | ||
* **objects:** add toHaveUndefined matcher ([443dc76](https://github.com/JamieMason/Jasmine-Matchers/commit/443dc76)), closes [#37](https://github.com/JamieMason/Jasmine-Matchers/issues/37) | ||
<a name="3.5.0"></a> | ||
# [3.5.0](https://github.com/JamieMason/Jasmine-Matchers/compare/3.2.0...v3.5.0) (2017-01-18) | ||
# [3.5.0](https://github.com/JamieMason/Jasmine-Matchers/compare/3.2.0...3.5.0) (2017-01-18) | ||
@@ -4,0 +14,0 @@ |
@@ -29,2 +29,3 @@ # jasmine-expect | ||
- [codeclimate-test-reporter](https://github.com/codeclimate/javascript-test-reporter): Code Climate test reporter client for javascript projects | ||
- [cz-conventional-changelog](https://github.com/commitizen/cz-conventional-changelog): Commitizen adapter following the conventional-changelog format. | ||
- [gulp](https://github.com/gulpjs/gulp): The streaming build system | ||
@@ -42,2 +43,3 @@ - [jasmine-core](https://github.com/jasmine/jasmine): Official packaging of Jasmine's core files for use by Node.js projects. | ||
- [saucelabs](https://github.com/holidayextras/node-saucelabs): A wrapper around Sauce Labs REST API | ||
- [validate-commit-msg](https://github.com/kentcdodds/validate-commit-msg): Script to validate a commit message follows the conventional changelog standard | ||
- [vinyl-source-stream](https://github.com/hughsk/vinyl-source-stream): Use conventional text streams at the start of your gulp or vinyl pipelines | ||
@@ -44,0 +46,0 @@ - [xo](https://github.com/sindresorhus/xo): JavaScript happiness style linter ❤️ |
@@ -559,2 +559,3 @@ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
toHaveTrue: require('./toHaveTrue'), | ||
toHaveUndefined: require('./toHaveUndefined'), | ||
toHaveWhitespaceString: require('./toHaveWhitespaceString'), | ||
@@ -568,3 +569,3 @@ toHaveWholeNumber: require('./toHaveWholeNumber'), | ||
},{"./toBeAfter":18,"./toBeArray":19,"./toBeArrayOfBooleans":20,"./toBeArrayOfNumbers":21,"./toBeArrayOfObjects":22,"./toBeArrayOfSize":23,"./toBeArrayOfStrings":24,"./toBeBefore":25,"./toBeBoolean":26,"./toBeCalculable":27,"./toBeDate":28,"./toBeEmptyArray":29,"./toBeEmptyObject":30,"./toBeEmptyString":31,"./toBeEvenNumber":32,"./toBeFalse":33,"./toBeFunction":34,"./toBeGreaterThanOrEqualTo":35,"./toBeHtmlString":36,"./toBeIso8601":37,"./toBeJsonString":38,"./toBeLessThanOrEqualTo":39,"./toBeLongerThan":40,"./toBeNear":41,"./toBeNonEmptyArray":42,"./toBeNonEmptyObject":43,"./toBeNonEmptyString":44,"./toBeNumber":45,"./toBeObject":46,"./toBeOddNumber":47,"./toBeRegExp":48,"./toBeSameLengthAs":49,"./toBeShorterThan":50,"./toBeString":51,"./toBeTrue":52,"./toBeValidDate":53,"./toBeWhitespace":54,"./toBeWholeNumber":55,"./toBeWithinRange":56,"./toEndWith":57,"./toHaveArray":58,"./toHaveArrayOfBooleans":59,"./toHaveArrayOfNumbers":60,"./toHaveArrayOfObjects":61,"./toHaveArrayOfSize":62,"./toHaveArrayOfStrings":63,"./toHaveBoolean":64,"./toHaveCalculable":65,"./toHaveDate":66,"./toHaveDateAfter":67,"./toHaveDateBefore":68,"./toHaveEmptyArray":69,"./toHaveEmptyObject":70,"./toHaveEmptyString":71,"./toHaveEvenNumber":72,"./toHaveFalse":73,"./toHaveHtmlString":74,"./toHaveIso8601":75,"./toHaveJsonString":76,"./toHaveMember":77,"./toHaveMethod":78,"./toHaveNonEmptyArray":79,"./toHaveNonEmptyObject":80,"./toHaveNonEmptyString":81,"./toHaveNumber":82,"./toHaveNumberWithinRange":83,"./toHaveObject":84,"./toHaveOddNumber":85,"./toHaveString":86,"./toHaveStringLongerThan":87,"./toHaveStringSameLengthAs":88,"./toHaveStringShorterThan":89,"./toHaveTrue":90,"./toHaveWhitespaceString":91,"./toHaveWholeNumber":92,"./toStartWith":93,"./toThrowAnyError":94,"./toThrowErrorOfType":95}],11:[function(require,module,exports){ | ||
},{"./toBeAfter":18,"./toBeArray":19,"./toBeArrayOfBooleans":20,"./toBeArrayOfNumbers":21,"./toBeArrayOfObjects":22,"./toBeArrayOfSize":23,"./toBeArrayOfStrings":24,"./toBeBefore":25,"./toBeBoolean":26,"./toBeCalculable":27,"./toBeDate":28,"./toBeEmptyArray":29,"./toBeEmptyObject":30,"./toBeEmptyString":31,"./toBeEvenNumber":32,"./toBeFalse":33,"./toBeFunction":34,"./toBeGreaterThanOrEqualTo":35,"./toBeHtmlString":36,"./toBeIso8601":37,"./toBeJsonString":38,"./toBeLessThanOrEqualTo":39,"./toBeLongerThan":40,"./toBeNear":41,"./toBeNonEmptyArray":42,"./toBeNonEmptyObject":43,"./toBeNonEmptyString":44,"./toBeNumber":45,"./toBeObject":46,"./toBeOddNumber":47,"./toBeRegExp":48,"./toBeSameLengthAs":49,"./toBeShorterThan":50,"./toBeString":51,"./toBeTrue":52,"./toBeValidDate":53,"./toBeWhitespace":54,"./toBeWholeNumber":55,"./toBeWithinRange":56,"./toEndWith":57,"./toHaveArray":58,"./toHaveArrayOfBooleans":59,"./toHaveArrayOfNumbers":60,"./toHaveArrayOfObjects":61,"./toHaveArrayOfSize":62,"./toHaveArrayOfStrings":63,"./toHaveBoolean":64,"./toHaveCalculable":65,"./toHaveDate":66,"./toHaveDateAfter":67,"./toHaveDateBefore":68,"./toHaveEmptyArray":69,"./toHaveEmptyObject":70,"./toHaveEmptyString":71,"./toHaveEvenNumber":72,"./toHaveFalse":73,"./toHaveHtmlString":74,"./toHaveIso8601":75,"./toHaveJsonString":76,"./toHaveMember":77,"./toHaveMethod":78,"./toHaveNonEmptyArray":79,"./toHaveNonEmptyObject":80,"./toHaveNonEmptyString":81,"./toHaveNumber":82,"./toHaveNumberWithinRange":83,"./toHaveObject":84,"./toHaveOddNumber":85,"./toHaveString":86,"./toHaveStringLongerThan":87,"./toHaveStringSameLengthAs":88,"./toHaveStringShorterThan":89,"./toHaveTrue":90,"./toHaveUndefined":91,"./toHaveWhitespaceString":92,"./toHaveWholeNumber":93,"./toStartWith":94,"./toThrowAnyError":95,"./toThrowErrorOfType":96}],11:[function(require,module,exports){ | ||
// modules | ||
@@ -616,3 +617,3 @@ var reduce = require('./lib/reduce'); | ||
// public | ||
module.exports = function every(array, truthTest) { | ||
module.exports = function any(array, truthTest) { | ||
for (var i = 0, len = array.length; i < len; i++) { | ||
@@ -1411,2 +1412,12 @@ if (truthTest(array[i])) { | ||
var toBeObject = require('./toBeObject'); | ||
var toHaveMember = require('./toHaveMember'); | ||
// public | ||
module.exports = function toHaveUndefined(key, actual) { | ||
return toBeObject(actual) && toHaveMember(key, actual) && typeof actual[key] === 'undefined'; | ||
}; | ||
},{"./toBeObject":46,"./toHaveMember":77}],92:[function(require,module,exports){ | ||
// modules | ||
var toBeObject = require('./toBeObject'); | ||
var toBeWhitespace = require('./toBeWhitespace'); | ||
@@ -1419,3 +1430,3 @@ | ||
},{"./toBeObject":46,"./toBeWhitespace":54}],92:[function(require,module,exports){ | ||
},{"./toBeObject":46,"./toBeWhitespace":54}],93:[function(require,module,exports){ | ||
// modules | ||
@@ -1430,3 +1441,3 @@ var toBeObject = require('./toBeObject'); | ||
},{"./toBeObject":46,"./toBeWholeNumber":55}],93:[function(require,module,exports){ | ||
},{"./toBeObject":46,"./toBeWholeNumber":55}],94:[function(require,module,exports){ | ||
// modules | ||
@@ -1443,3 +1454,3 @@ var toBeNonEmptyString = require('./toBeNonEmptyString'); | ||
},{"./toBeNonEmptyString":44}],94:[function(require,module,exports){ | ||
},{"./toBeNonEmptyString":44}],95:[function(require,module,exports){ | ||
// public | ||
@@ -1455,3 +1466,3 @@ module.exports = function toThrowAnyError(actual) { | ||
},{}],95:[function(require,module,exports){ | ||
},{}],96:[function(require,module,exports){ | ||
// public | ||
@@ -1458,0 +1469,0 @@ module.exports = function toThrowErrorOfType(type, actual) { |
{ | ||
"name": "jasmine-expect", | ||
"description": "Additional matchers for the Jasmine BDD JavaScript testing library", | ||
"version": "3.5.0", | ||
"version": "3.6.0", | ||
"author": "Jamie Mason (https://github.com/JamieMason)", | ||
@@ -9,2 +9,7 @@ "bugs": { | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"contributors": [ | ||
@@ -20,2 +25,3 @@ "Ariel Mashraki (https://github.com/a8m)", | ||
"Jarek Rencz (https://github.com/jrencz)", | ||
"Jose M Andres (https://github.com/jmandreslopez)", | ||
"Klaus Sevensleeper (https://github.com/k7sleeper)", | ||
@@ -33,2 +39,3 @@ "Marcin Wosinek (https://github.com/marcin-wosinek)", | ||
"codeclimate-test-reporter": "0.4.0", | ||
"cz-conventional-changelog": "1.2.0", | ||
"gulp": "3.9.1", | ||
@@ -46,2 +53,3 @@ "jasmine-core": "2.5.2", | ||
"saucelabs": "1.3.0", | ||
"validate-commit-msg": "2.9.0", | ||
"vinyl-source-stream": "1.1.0", | ||
@@ -78,2 +86,3 @@ "xo": "0.17.1" | ||
"build": "gulp browserify", | ||
"commitmsg": "validate-commit-msg", | ||
"lint": "xo --fix", | ||
@@ -80,0 +89,0 @@ "test": "npm run lint && npm run browserstack-android && npm run browserstack-ios && npm run browserstack-ie && npm run browserstack-safari && npm run browserstack-opera && npm run browserstack-firefox && npm run browserstack-chrome", |
@@ -220,2 +220,3 @@ # Jasmine-Matchers | ||
[toHaveTrue](https://github.com/JamieMason/Jasmine-Matchers/blob/master/test/toHaveTrue.spec.js) | `expect(object).toHaveTrue(memberName);` | ||
[toHaveUndefined](https://github.com/JamieMason/Jasmine-Matchers/blob/master/test/toHaveUndefined.spec.js) | `expect(object).toHaveUndefined(memberName);` | ||
[toHaveWhitespaceString](https://github.com/JamieMason/Jasmine-Matchers/blob/master/test/toHaveWhitespaceString.spec.js) | `expect(object).toHaveWhitespaceString(memberName);` | ||
@@ -222,0 +223,0 @@ [toHaveWholeNumber](https://github.com/JamieMason/Jasmine-Matchers/blob/master/test/toHaveWholeNumber.spec.js) | `expect(object).toHaveWholeNumber(memberName);` |
@@ -162,2 +162,3 @@ // public | ||
toHaveTrue: require('./toHaveTrue'), | ||
toHaveUndefined: require('./toHaveUndefined'), | ||
toHaveWhitespaceString: require('./toHaveWhitespaceString'), | ||
@@ -164,0 +165,0 @@ toHaveWholeNumber: require('./toHaveWholeNumber'), |
// public | ||
module.exports = function every(array, truthTest) { | ||
module.exports = function any(array, truthTest) { | ||
for (var i = 0, len = array.length; i < len; i++) { | ||
@@ -4,0 +4,0 @@ if (truthTest(array[i])) { |
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
357
2
112497
18
2107