jasmine-expect
Advanced tools
Comparing version 2.0.0-beta5 to 2.0.0
@@ -1723,3 +1723,3 @@ (function e(t, n, r) { | ||
for (var key in api) { | ||
if (api.hasOwnProperty(key) && !is(actual[key], api[key].name)) { | ||
if (!actual[key] || actual[key].constructor !== api[key]) { | ||
return false; | ||
@@ -1726,0 +1726,0 @@ } |
{ | ||
"name": "jasmine-expect", | ||
"description": "Additional matchers for the Jasmine BDD JavaScript testing library", | ||
"version": "2.0.0-beta5", | ||
"version": "2.0.0", | ||
"author": "Jamie Mason (https://github.com/JamieMason)", | ||
@@ -13,12 +13,23 @@ "authors": [ | ||
"contributors": [ | ||
"Ariel Mashraki (https://github.com/a8m)", | ||
"Caleb Jares (https://github.com/cable729)", | ||
"David Parker (https://github.com/boldfacedesign)", | ||
"David Tanner (https://github.com/DavidTanner)", | ||
"Elior Boukhobza (https://github.com/mallowigi)", | ||
"ik9999 (https://github.com/ik9999)", | ||
"Jamie Mason (https://github.com/JamieMason)", | ||
"David Tanner (https://github.com/DavidTanner)" | ||
"Jarek Rencz (https://github.com/jrencz)", | ||
"Klaus Sevensleeper (https://github.com/k7sleeper)", | ||
"Marcin Wosinek (https://github.com/marcin-wosinek)", | ||
"Mathieu Robin (https://github.com/MathRobin)", | ||
"Sam L'ecuyer (https://github.com/samlecuyer)", | ||
"Vilmos Ioo (https://github.com/vilmosioo)" | ||
], | ||
"devDependencies": { | ||
"browserify": "13.0.0", | ||
"codeclimate-test-reporter": "0.3.0", | ||
"codeclimate-test-reporter": "0.3.1", | ||
"esformatter": "0.9.0", | ||
"esformatter-braces": "1.2.1", | ||
"esformatter-dot-notation": "1.3.1", | ||
"esformatter-jsx": "4.1.1", | ||
"esformatter-jsx": "4.1.2", | ||
"esformatter-parseint": "1.0.3", | ||
@@ -38,3 +49,4 @@ "esformatter-quotes": "1.0.3", | ||
"karma-firefox-launcher": "0.1.7", | ||
"karma-jasmine": "0.3.6", | ||
"karma-ievms": "0.1.0", | ||
"karma-jasmine": "0.3.7", | ||
"karma-nested-reporter": "0.1.4", | ||
@@ -69,12 +81,9 @@ "karma-opera-launcher": "0.3.0", | ||
"linter": "eslint .", | ||
"test": "karma start karma.conf.js --single-run", | ||
"test-ie10-ievms": "karma start karma-ievms-ie10.conf.js --single-run", | ||
"test-ie11-saucelabs": "karma start karma-saucelabs-ie.conf.js --single-run", | ||
"test-ie7-ievms": "karma start karma-ievms-ie7.conf.js --single-run", | ||
"test-ie8-ievms": "karma start karma-ievms-ie8.conf.js --single-run", | ||
"test-ie9-ievms": "karma start karma-ievms-ie9.conf.js --single-run", | ||
"test-local": "karma start karma-local.conf.js --single-run", | ||
"test-opera-emulator": "karma start karma-opera-emulator.conf.js --single-run", | ||
"test": "bin/test-runner.sh", | ||
"test-desktop": "npm run test-saucelabs -- --browsers winChrome47 osxSafari9 osxSafari8 osxFirefox43 osxFirefox40", | ||
"test-ie": "npm run test-saucelabs -- --browsers winIe11 winIe10 winIe9", | ||
"test-mobile": "npm run test-saucelabs -- --browsers android-4.4 android-5.1 ios-9.2 ios-8.4 ios-8.0", | ||
"test-saucelabs": "karma start karma-saucelabs.conf.js", | ||
"test-watcher": "karma start --no-single-run --auto-watch" | ||
} | ||
} |
@@ -18,5 +18,5 @@ # Jasmine-Matchers | ||
+ **[Installation](#installation)**: [npm](#npm), [Bower](#bower), [Manual](#manual) | ||
+ **[Integration](#integration)**: [Browser](#browser), [Karma](#karma), [Node.js](#node-js), [Sublime Text](#sublime-text), [Tern](#tern). | ||
+ **[Integration](#integration)**: [Browser](#browser), [Karma](#karma), [Node.js](#node-js), [Sublime Text](#sublime-text), [Tern](#tern), [Jest](#jest). | ||
+ **[Available Matchers](#available-matchers)**: [Arrays](#arrays), [Booleans](#booleans), [Dates](#dates), [Functions and Errors](#functions-and-errors), [Numbers](#numbers), [Objects](#objects), [Strings](#strings). | ||
+ **[Known Supported Devices](#known-supported-devices)** | ||
+ **[Browser Test Suite](#browser-test-suite)** | ||
@@ -133,2 +133,20 @@ ## Purpose | ||
### Jest | ||
Jasmine Matchers can be used with Facebook's [Jest](https://facebook.github.io/jest/). | ||
```js | ||
// package.json | ||
"unmockedModulePathPatterns": [ | ||
"jasmine-expect" | ||
], | ||
``` | ||
```js | ||
// some test | ||
import JasmineExpect from 'jasmine-expect'; | ||
// ... | ||
expect(someValue).toBeArrayOfObjects(); | ||
``` | ||
## Available Matchers | ||
@@ -231,16 +249,18 @@ | ||
## Known Supported Devices | ||
## Browser Test Suite | ||
During development, Jasmine-Matchers is tested against the following environments. | ||
Jasmine-Matchers is tested on [Travis CI](https://travis-ci.org/JamieMason/Jasmine-Matchers) and [Sauce Labs](https://saucelabs.com) against the following environments. | ||
+ Chrome 40.0.2214 (Mac OS X 10.10.1) | ||
+ Firefox 33.0.0 (Mac OS X 10.10) | ||
+ IE 7 (Windows XP on VirtualBox) | ||
+ IE 8 (Windows XP on VirtualBox) | ||
+ IE 9 (Windows 7 on VirtualBox) | ||
+ IE 10 (Windows 7 on VirtualBox) | ||
+ IE 11 (Windows 8.1 on SauceLabs) | ||
+ Opera 27.0.1689 (Mac OS X 10.10.1) | ||
+ Opera Mobile (Amazon Kindle Fire HD 8.9 on Opera Mobile Emulator) | ||
+ PhantomJS 1.9.8 (Mac OS X) | ||
+ Safari 8.0.2 (Mac OS X 10.10.1) | ||
+ Android 4.4 on Linux | ||
+ Android 5.1 on Linux | ||
+ Chrome 47 on Windows 10 | ||
+ Firefox 40.0 on OS X 10.10 | ||
+ Firefox 43.0 on OS X 10.10 | ||
+ IE 10 on Windows 7 | ||
+ IE 11 on Windows 8.1 | ||
+ IE 9 on Windows 7 | ||
+ iOS 8.0 on OS X 10.10 | ||
+ iOS 8.4 on OS X 10.10 | ||
+ iOS 9.2 on OS X 10.10 | ||
+ Safari 8.0 on OS X 10.10 | ||
+ Safari 9.0 on OS X 10.11 |
@@ -16,3 +16,3 @@ 'use strict'; | ||
for (var key in api) { | ||
if (api.hasOwnProperty(key) && !is(actual[key], api[key].name)) { | ||
if (!actual[key] || actual[key].constructor !== api[key]) { | ||
return false; | ||
@@ -19,0 +19,0 @@ } |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
265713
99
0
264
31