Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jasmine-expect

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine-expect - npm Package Compare versions

Comparing version 3.8.1 to 3.8.3

dist/jasmine-matchers.spec.js

11

CHANGELOG.md

@@ -0,1 +1,12 @@

<a name="3.8.3"></a>
## [3.8.3](https://github.com/JamieMason/Jasmine-Matchers/compare/3.8.1...3.8.3) (2018-01-29)
### Bug Fixes
* **types:** update typescript definitions ([23ee7d8](https://github.com/JamieMason/Jasmine-Matchers/commit/23ee7d8))
* **typescript:** fix jest typings mismatch ([3cb9571](https://github.com/JamieMason/Jasmine-Matchers/commit/3cb9571)), closes [#62](https://github.com/JamieMason/Jasmine-Matchers/issues/62)
<a name="3.8.1"></a>

@@ -2,0 +13,0 @@ ## [3.8.1](https://github.com/JamieMason/Jasmine-Matchers/compare/3.7.1...3.8.1) (2017-10-30)

56

DEPENDENCIES.md

@@ -1,2 +0,2 @@

# jasmine-expect
# jasmine-expect

@@ -7,2 +7,9 @@ Write Beautiful Specs with Custom Matchers

This is a [Node.js](https://nodejs.org/) module available through the
[npm registry](https://www.npmjs.com/). It can be installed using the
[`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally)
or
[`yarn`](https://yarnpkg.com/en/)
command line tools.
```sh

@@ -12,3 +19,2 @@ npm install jasmine-expect --save

## Tests

@@ -23,31 +29,31 @@

- [add-matchers](https://github.com/JamieMason/add-matchers): Write useful test matchers compatible with Jest and Jasmine.
- [add-matchers](http://ghub.io/add-matchers): Write useful test matchers compatible with Jest and Jasmine.
## Dev Dependencies
- [babel-preset-env](https://github.com/babel/babel-preset-env): A Babel preset for each environment.
- [babelify](https://github.com/babel/babelify): Babel browserify transform
- [browserify](https://github.com/substack/node-browserify): browser-side require() the node way
- [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
- [husky](https://github.com/typicode/husky): Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)
- [jasmine-core](https://github.com/jasmine/jasmine): Official packaging of Jasmine&#39;s core files for use by Node.js projects.
- [jest](https://github.com/facebook/jest): Delightful JavaScript Testing.
- [karma](https://github.com/karma-runner/karma): Spectacular Test Runner for JavaScript.
- [karma-browserstack-launcher](https://github.com/karma-runner/karma-browserstack-launcher): A Karma plugin. Launch any browser on BrowserStack!
- [karma-chrome-launcher](https://github.com/karma-runner/karma-chrome-launcher): A Karma plugin. Launcher for Chrome and Chrome Canary.
- [karma-cli](https://github.com/karma-runner/karma-cli): The Karma command line interface.
- [karma-coverage](https://github.com/karma-runner/karma-coverage): A Karma plugin. Generate code coverage.
- [karma-firefox-launcher](https://github.com/karma-runner/karma-firefox-launcher): A Karma plugin. Launcher for Firefox.
- [karma-jasmine](https://github.com/karma-runner/karma-jasmine): A Karma plugin - adapter for Jasmine testing framework.
- [karma-nested-reporter](https://github.com/JamieMason/karma-nested-reporter): Easier to read test output with nested describe and it blocks.
- [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
- [xo](https://github.com/sindresorhus/xo): JavaScript happiness style linter ❤️
- [babel-core](http://ghub.io/babel-core): Babel compiler core.
- [babel-preset-env](http://ghub.io/babel-preset-env): A Babel preset for each environment.
- [babelify](http://ghub.io/babelify): Babel browserify transform
- [browserify](http://ghub.io/browserify): browser-side require() the node way
- [codeclimate-test-reporter](http://ghub.io/codeclimate-test-reporter): Code Climate test reporter client for javascript projects
- [cz-conventional-changelog](http://ghub.io/cz-conventional-changelog): Commitizen adapter following the conventional-changelog format.
- [gulp](http://ghub.io/gulp): The streaming build system
- [husky](http://ghub.io/husky): Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)
- [jasmine-core](http://ghub.io/jasmine-core): Official packaging of Jasmine&#39;s core files for use by Node.js projects.
- [jest](http://ghub.io/jest): Delightful JavaScript Testing.
- [karma](http://ghub.io/karma): Spectacular Test Runner for JavaScript.
- [karma-browserstack-launcher](http://ghub.io/karma-browserstack-launcher): A Karma plugin. Launch any browser on BrowserStack!
- [karma-chrome-launcher](http://ghub.io/karma-chrome-launcher): A Karma plugin. Launcher for Chrome and Chrome Canary.
- [karma-cli](http://ghub.io/karma-cli): The Karma command line interface.
- [karma-coverage](http://ghub.io/karma-coverage): A Karma plugin. Generate code coverage.
- [karma-firefox-launcher](http://ghub.io/karma-firefox-launcher): A Karma plugin. Launcher for Firefox.
- [karma-jasmine](http://ghub.io/karma-jasmine): A Karma plugin - adapter for Jasmine testing framework.
- [karma-nested-reporter](http://ghub.io/karma-nested-reporter): Easier to read test output with nested describe and it blocks.
- [saucelabs](http://ghub.io/saucelabs): A wrapper around Sauce Labs REST API
- [validate-commit-msg](http://ghub.io/validate-commit-msg): Script to validate a commit message follows the conventional changelog standard
- [vinyl-source-stream](http://ghub.io/vinyl-source-stream): Use conventional text streams at the start of your gulp or vinyl pipelines
- [xo](http://ghub.io/xo): JavaScript happiness style linter ❤️
## License
MIT

@@ -436,6 +436,4 @@ (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){

// 3rd party modules
var addMatchers = require('add-matchers');
// implementation
var matchersByName = {

@@ -557,3 +555,2 @@ toBeAfter: require('./toBeAfter'),

// public
module.exports = matchersByName;

@@ -564,3 +561,2 @@

// public
module.exports = function (array, truthTest) {

@@ -578,3 +574,2 @@ for (var i = 0, len = array.length; i < len; i++) {

// public
module.exports = {

@@ -591,3 +586,2 @@ Array: is('Array'),

// implementation
function is(type) {

@@ -608,6 +602,4 @@ return function (value) {

// modules
var reduce = require('./reduce');
// public
module.exports = function (object) {

@@ -622,6 +614,4 @@ return reduce(object, function (keys, value, key) {

// modules
var is = require('./is');
// public
module.exports = function (toBeX) {

@@ -636,6 +626,4 @@ return function (key, actual) {

// modules
var is = require('./is');
// public
module.exports = function (collection, fn, memo) {

@@ -659,6 +647,4 @@ if (is.Array(collection)) {

// modules
var toBeBefore = require('./toBeBefore');
// public
module.exports = function (otherDate, actual) {

@@ -671,6 +657,4 @@ return toBeBefore(actual, otherDate);

// modules
var is = require('./lib/is');
// public
module.exports = is.Array;

@@ -681,3 +665,2 @@

// modules
var every = require('./lib/every');

@@ -687,3 +670,2 @@ var toBeArray = require('./toBeArray');

// public
module.exports = function (actual) {

@@ -696,3 +678,2 @@ return toBeArray(actual) && every(actual, toBeBoolean);

// modules
var every = require('./lib/every');

@@ -702,3 +683,2 @@ var toBeArray = require('./toBeArray');

// public
module.exports = function (actual) {

@@ -711,3 +691,2 @@ return toBeArray(actual) && every(actual, toBeNumber);

// modules
var every = require('./lib/every');

@@ -717,3 +696,2 @@ var toBeArray = require('./toBeArray');

// public
module.exports = function (actual) {

@@ -726,6 +704,4 @@ return toBeArray(actual) && every(actual, toBeObject);

// modules
var toBeArray = require('./toBeArray');
// public
module.exports = function (size, actual) {

@@ -738,3 +714,2 @@ return toBeArray(actual) && actual.length === size;

// modules
var every = require('./lib/every');

@@ -744,3 +719,2 @@ var toBeArray = require('./toBeArray');

// public
module.exports = function (actual) {

@@ -753,6 +727,4 @@ return toBeArray(actual) && every(actual, toBeString);

// modules
var toBeDate = require('./toBeDate');
// public
module.exports = function (otherDate, actual) {

@@ -765,6 +737,4 @@ return toBeDate(actual) && toBeDate(otherDate) && actual.getTime() < otherDate.getTime();

// modules
var is = require('./lib/is');
// public
module.exports = is.Boolean;

@@ -775,3 +745,2 @@

// public
module.exports = toBeCalculable;

@@ -788,6 +757,4 @@

// modules
var is = require('./lib/is');
// public
module.exports = is.Date;

@@ -798,6 +765,4 @@

// modules
var toBeArrayOfSize = require('./toBeArrayOfSize');
// public
module.exports = function (actual) {

@@ -810,7 +775,5 @@ return toBeArrayOfSize(0, actual);

// modules
var is = require('./lib/is');
var keys = require('./lib/keys');
// public
module.exports = function (actual) {

@@ -823,3 +786,2 @@ return is.Object(actual) && keys(actual).length === 0;

// public
module.exports = function (actual) {

@@ -832,6 +794,4 @@ return actual === '';

// modules
var toBeNumber = require('./toBeNumber');
// public
module.exports = function (actual) {

@@ -844,6 +804,4 @@ return toBeNumber(actual) && actual % 2 === 0;

// modules
var is = require('./lib/is');
// public
module.exports = function (actual) {

@@ -856,6 +814,4 @@ return actual === false || is.False(actual);

// modules
var is = require('./lib/is');
// public
module.exports = is.Function;

@@ -866,6 +822,4 @@

// modules
var toBeNumber = require('./toBeNumber');
// public
module.exports = function (otherNumber, actual) {

@@ -878,6 +832,4 @@ return toBeNumber(actual) && actual >= otherNumber;

// modules
var toBeString = require('./toBeString');
// public
// < start with opening tag "<"

@@ -900,7 +852,5 @@ // ( start group 1

// modules
var toBeString = require('./toBeString');
var toBeValidDate = require('./toBeValidDate');
// public
module.exports = function (actual) {

@@ -910,3 +860,2 @@ return toBeString(actual) && (isMatch('1999-12-31', actual) || isMatch('1999-12-31T23:59', actual) || isMatch('1999-12-31T23:59:59', actual) || isMatch('1999-12-31T23:59:59.000', actual) || isMatch('1999-12-31T23:59:59.000Z', actual)) && toBeValidDate(new Date(actual));

// implementation
function isMatch(pattern, actual) {

@@ -926,3 +875,2 @@ var patterns = {

// public
module.exports = function (actual) {

@@ -939,6 +887,4 @@ try {

// modules
var toBeNumber = require('./toBeNumber');
// public
module.exports = function (otherNumber, actual) {

@@ -951,6 +897,4 @@ return toBeNumber(actual) && actual <= otherNumber;

// modules
var toBeString = require('./toBeString');
// public
module.exports = function (otherString, actual) {

@@ -963,6 +907,4 @@ return toBeString(actual) && toBeString(otherString) && actual.length > otherString.length;

// modules
var toBeNumber = require('./toBeNumber');
// public
module.exports = function (number, epsilon, actual) {

@@ -975,6 +917,4 @@ return toBeNumber(actual) && actual >= number - epsilon && actual <= number + epsilon;

// modules
var is = require('./lib/is');
// public
module.exports = function (actual) {

@@ -987,7 +927,5 @@ return is.Array(actual) && actual.length > 0;

// modules
var is = require('./lib/is');
var keys = require('./lib/keys');
// public
module.exports = function (actual) {

@@ -1000,6 +938,4 @@ return is.Object(actual) && keys(actual).length > 0;

// modules
var toBeString = require('./toBeString');
// public
module.exports = function (actual) {

@@ -1012,6 +948,4 @@ return toBeString(actual) && actual.length > 0;

// modules
var is = require('./lib/is');
// public
module.exports = function (actual) {

@@ -1024,6 +958,4 @@ return !isNaN(parseFloat(actual)) && !is.String(actual);

// modules
var is = require('./lib/is');
// public
module.exports = is.Object;

@@ -1034,6 +966,4 @@

// modules
var toBeNumber = require('./toBeNumber');
// public
module.exports = function (actual) {

@@ -1046,3 +976,2 @@ return toBeNumber(actual) && actual % 2 !== 0;

// public
module.exports = function (actual) {

@@ -1055,6 +984,4 @@ return actual instanceof RegExp;

// modules
var toBeString = require('./toBeString');
// public
module.exports = function (otherString, actual) {

@@ -1067,6 +994,4 @@ return toBeString(actual) && toBeString(otherString) && actual.length === otherString.length;

// modules
var toBeString = require('./toBeString');
// public
module.exports = function (otherString, actual) {

@@ -1079,6 +1004,4 @@ return toBeString(actual) && toBeString(otherString) && actual.length < otherString.length;

// modules
var is = require('./lib/is');
// public
module.exports = is.String;

@@ -1089,6 +1012,4 @@

// modules
var is = require('./lib/is');
// public
module.exports = function (actual) {

@@ -1101,6 +1022,4 @@ return actual === true || is.True(actual);

// modules
var is = require('./lib/is');
// public
module.exports = function (actual) {

@@ -1113,6 +1032,4 @@ return is.Date(actual) && !isNaN(actual.getTime());

// modules
var toBeString = require('./toBeString');
// public
module.exports = function (actual) {

@@ -1125,6 +1042,4 @@ return toBeString(actual) && actual.search(/\S/) === -1;

// modules
var toBeNumber = require('./toBeNumber');
// public
module.exports = function (actual) {

@@ -1137,6 +1052,4 @@ return toBeNumber(actual) && (actual === 0 || actual % 1 === 0);

// modules
var toBeNumber = require('./toBeNumber');
// public
module.exports = function (floor, ceiling, actual) {

@@ -1149,6 +1062,4 @@ return toBeNumber(actual) && actual >= floor && actual <= ceiling;

// modules
var toBeNonEmptyString = require('./toBeNonEmptyString');
// public
module.exports = function (subString, actual) {

@@ -1161,7 +1072,5 @@ return toBeNonEmptyString(actual) && toBeNonEmptyString(subString) && actual.slice(actual.length - subString.length, actual.length) === subString;

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeArray = require('./toBeArray');
// public
module.exports = memberMatcherFor(toBeArray);

@@ -1172,7 +1081,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeArrayOfBooleans = require('./toBeArrayOfBooleans');
// public
module.exports = memberMatcherFor(toBeArrayOfBooleans);

@@ -1183,7 +1090,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeArrayOfNumbers = require('./toBeArrayOfNumbers');
// public
module.exports = memberMatcherFor(toBeArrayOfNumbers);

@@ -1194,7 +1099,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeArrayOfObjects = require('./toBeArrayOfObjects');
// public
module.exports = memberMatcherFor(toBeArrayOfObjects);

@@ -1205,7 +1108,5 @@

// modules
var toBeObject = require('./toBeObject');
var toBeArrayOfSize = require('./toBeArrayOfSize');
// public
module.exports = function (key, size, actual) {

@@ -1218,7 +1119,5 @@ return toBeObject(actual) && toBeArrayOfSize(size, actual[key]);

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeArrayOfStrings = require('./toBeArrayOfStrings');
// public
module.exports = memberMatcherFor(toBeArrayOfStrings);

@@ -1229,7 +1128,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeBoolean = require('./toBeBoolean');
// public
module.exports = memberMatcherFor(toBeBoolean);

@@ -1240,7 +1137,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeCalculable = require('./toBeCalculable');
// public
module.exports = memberMatcherFor(toBeCalculable);

@@ -1251,7 +1146,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeDate = require('./toBeDate');
// public
module.exports = memberMatcherFor(toBeDate);

@@ -1262,7 +1155,5 @@

// modules
var toBeObject = require('./toBeObject');
var toBeAfter = require('./toBeAfter');
// public
module.exports = function (key, date, actual) {

@@ -1275,7 +1166,5 @@ return toBeObject(actual) && toBeAfter(date, actual[key]);

// modules
var toBeObject = require('./toBeObject');
var toBeBefore = require('./toBeBefore');
// public
module.exports = function (key, date, actual) {

@@ -1288,7 +1177,5 @@ return toBeObject(actual) && toBeBefore(date, actual[key]);

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeEmptyArray = require('./toBeEmptyArray');
// public
module.exports = memberMatcherFor(toBeEmptyArray);

@@ -1299,7 +1186,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeEmptyObject = require('./toBeEmptyObject');
// public
module.exports = memberMatcherFor(toBeEmptyObject);

@@ -1310,7 +1195,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeEmptyString = require('./toBeEmptyString');
// public
module.exports = memberMatcherFor(toBeEmptyString);

@@ -1321,7 +1204,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeEvenNumber = require('./toBeEvenNumber');
// public
module.exports = memberMatcherFor(toBeEvenNumber);

@@ -1332,7 +1213,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeFalse = require('./toBeFalse');
// public
module.exports = memberMatcherFor(toBeFalse);

@@ -1343,7 +1222,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeHtmlString = require('./toBeHtmlString');
// public
module.exports = memberMatcherFor(toBeHtmlString);

@@ -1354,7 +1231,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeIso8601 = require('./toBeIso8601');
// public
module.exports = memberMatcherFor(toBeIso8601);

@@ -1365,7 +1240,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeJsonString = require('./toBeJsonString');
// public
module.exports = memberMatcherFor(toBeJsonString);

@@ -1376,7 +1249,5 @@

// modules
var toBeObject = require('./toBeObject');
var toBeString = require('./toBeString');
// public
module.exports = function (key, actual) {

@@ -1389,7 +1260,5 @@ return toBeString(key) && toBeObject(actual) && key in actual;

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeFunction = require('./toBeFunction');
// public
module.exports = memberMatcherFor(toBeFunction);

@@ -1400,7 +1269,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeNonEmptyArray = require('./toBeNonEmptyArray');
// public
module.exports = memberMatcherFor(toBeNonEmptyArray);

@@ -1411,7 +1278,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeNonEmptyObject = require('./toBeNonEmptyObject');
// public
module.exports = memberMatcherFor(toBeNonEmptyObject);

@@ -1422,7 +1287,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeNonEmptyString = require('./toBeNonEmptyString');
// public
module.exports = memberMatcherFor(toBeNonEmptyString);

@@ -1433,7 +1296,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeNumber = require('./toBeNumber');
// public
module.exports = memberMatcherFor(toBeNumber);

@@ -1444,7 +1305,5 @@

// modules
var toBeObject = require('./toBeObject');
var toBeWithinRange = require('./toBeWithinRange');
// public
module.exports = function (key, floor, ceiling, actual) {

@@ -1457,7 +1316,5 @@ return toBeObject(actual) && toBeWithinRange(floor, ceiling, actual[key]);

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeObject = require('./toBeObject');
// public
module.exports = memberMatcherFor(toBeObject);

@@ -1468,7 +1325,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeOddNumber = require('./toBeOddNumber');
// public
module.exports = memberMatcherFor(toBeOddNumber);

@@ -1479,7 +1334,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeString = require('./toBeString');
// public
module.exports = memberMatcherFor(toBeString);

@@ -1490,7 +1343,5 @@

// modules
var toBeObject = require('./toBeObject');
var toBeLongerThan = require('./toBeLongerThan');
// public
module.exports = function (key, other, actual) {

@@ -1503,7 +1354,5 @@ return toBeObject(actual) && toBeLongerThan(other, actual[key]);

// modules
var toBeObject = require('./toBeObject');
var toBeSameLengthAs = require('./toBeSameLengthAs');
// public
module.exports = function (key, other, actual) {

@@ -1516,7 +1365,5 @@ return toBeObject(actual) && toBeSameLengthAs(other, actual[key]);

// modules
var toBeObject = require('./toBeObject');
var toBeShorterThan = require('./toBeShorterThan');
// public
module.exports = function (key, other, actual) {

@@ -1529,7 +1376,5 @@ return toBeObject(actual) && toBeShorterThan(other, actual[key]);

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeTrue = require('./toBeTrue');
// public
module.exports = memberMatcherFor(toBeTrue);

@@ -1540,7 +1385,5 @@

// modules
var toBeObject = require('./toBeObject');
var toHaveMember = require('./toHaveMember');
// public
module.exports = function (key, actual) {

@@ -1553,7 +1396,5 @@ return toBeObject(actual) && toHaveMember(key, actual) && typeof actual[key] === 'undefined';

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeWhitespace = require('./toBeWhitespace');
// public
module.exports = memberMatcherFor(toBeWhitespace);

@@ -1564,7 +1405,5 @@

// modules
var memberMatcherFor = require('./lib/memberMatcherFor');
var toBeWholeNumber = require('./toBeWholeNumber');
// public
module.exports = memberMatcherFor(toBeWholeNumber);

@@ -1575,6 +1414,4 @@

// modules
var toBeNonEmptyString = require('./toBeNonEmptyString');
// public
module.exports = function (subString, actual) {

@@ -1587,3 +1424,2 @@ return toBeNonEmptyString(actual) && toBeNonEmptyString(subString) && actual.slice(0, subString.length) === subString;

// public
module.exports = function (actual) {

@@ -1601,3 +1437,2 @@ try {

// public
module.exports = function (type, actual) {

@@ -1604,0 +1439,0 @@ try {

declare namespace jasmine {
interface Matchers {
interface Matchers<T> {
toBeAfter(otherDate: Date, expectationFailOutput?: any): boolean;

@@ -20,6 +20,9 @@ toBeArray(expectationFailOutput?: any): boolean;

toBeFunction(expectationFailOutput?: any): boolean;
toBeGreaterThanOrEqualTo(otherNumber: number, expectationFailOutput?: any): boolean;
toBeHtmlString(expectationFailOutput?: any): boolean;
toBeIso8601(expectationFailOutput?: any): boolean;
toBeJsonString(expectationFailOutput?: any): boolean;
toBeLessThanOrEqualTo(otherNumber: number, expectationFailOutput?: any): boolean;
toBeLongerThan(other: string, expectationFailOutput?: any): boolean;
toBeNear(number: number, epsilon: number, expectationFailOutput?: any): boolean;
toBeNonEmptyArray(expectationFailOutput?: any): boolean;

@@ -31,2 +34,3 @@ toBeNonEmptyObject(expectationFailOutput?: any): boolean;

toBeOddNumber(expectationFailOutput?: any): boolean;
toBeRegExp(expectationFailOutput?: any): boolean;
toBeSameLengthAs(other: string, expectationFailOutput?: any): boolean;

@@ -36,2 +40,3 @@ toBeShorterThan(other: string, expectationFailOutput?: any): boolean;

toBeTrue(expectationFailOutput?: any): boolean;
toBeValidDate(expectationFailOutput?: any): boolean;
toBeWhitespace(expectationFailOutput?: any): boolean;

@@ -76,7 +81,6 @@ toBeWholeNumber(expectationFailOutput?: any): boolean;

toHaveTrue(key: string, expectationFailOutput?: any): boolean;
toHaveUndefined(key: string, expectationFailOutput?: any): boolean;
toHaveWhitespaceString(key: string, expectationFailOutput?: any): boolean;
toHaveWholeNumber(key: string, expectationFailOutput?: any): boolean;
toImplement(api: {}, expectationFailOutput?: any): boolean;
toStartWith(subString: string, expectationFailOutput?: any): boolean;

@@ -87,2 +91,2 @@

}
}
}
{
"name": "jasmine-expect",
"description": "Write Beautiful Specs with Custom Matchers",
"version": "3.8.1",
"version": "3.8.3",
"author": "Jamie Mason <jamie@foldleft.io> (https://github.com/JamieMason)",

@@ -25,4 +25,7 @@ "bugs": "https://github.com/JamieMason/Jasmine-Matchers/issues",

"Marcin Wosinek (https://github.com/marcin-wosinek)",
"Mateo Tibaquirá (https://github.com/matheo)",
"Mathieu Robin (https://github.com/MathRobin)",
"Sam L'ecuyer (https://github.com/samlecuyer)",
"Sam Wall (https://github.com/sjwall)",
"Shaun Grady (https://github.com/shaungrady)",
"Vilmos Ioo (https://github.com/vilmosioo)"

@@ -34,12 +37,13 @@ ],

"devDependencies": {
"babel-preset-env": "1.6.0",
"babelify": "7.3.0",
"browserify": "14.4.0",
"babel-core": "6.26.0",
"babel-preset-env": "1.6.1",
"babelify": "8.0.0",
"browserify": "15.2.0",
"codeclimate-test-reporter": "0.5.0",
"cz-conventional-changelog": "2.0.0",
"cz-conventional-changelog": "2.1.0",
"gulp": "3.9.1",
"husky": "0.14.3",
"jasmine-core": "2.6.4",
"jest": "20.0.4",
"karma": "1.7.0",
"jasmine-core": "2.9.1",
"jest": "22.1.4",
"karma": "2.0.0",
"karma-browserstack-launcher": "1.3.0",

@@ -49,8 +53,8 @@ "karma-chrome-launcher": "2.2.0",

"karma-coverage": "1.1.1",
"karma-firefox-launcher": "1.0.1",
"karma-jasmine": "1.1.0",
"karma-nested-reporter": "0.1.5",
"karma-firefox-launcher": "1.1.0",
"karma-jasmine": "1.1.1",
"karma-nested-reporter": "0.1.6",
"saucelabs": "1.4.0",
"validate-commit-msg": "2.12.2",
"vinyl-source-stream": "1.1.0",
"validate-commit-msg": "2.14.0",
"vinyl-source-stream": "2.0.0",
"xo": "0.18.2"

@@ -80,3 +84,3 @@ },

"scripts": {
"browserstack-android": "karma start karma/browserstack-android.conf.js",
"browserstack-android": "echo 'TEMPORARILY DISABLED: karma start karma/browserstack-android.conf.js'",
"browserstack-chrome": "karma start karma/browserstack-chrome.conf.js",

@@ -83,0 +87,0 @@ "browserstack-firefox": "karma start karma/browserstack-firefox.conf.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc