This repository has been archived by the owner on Nov 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
12 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "should", | ||
"description": "test framework agnostic BDD-style assertions", | ||
"version": "13.1.2", | ||
"version": "13.1.3", | ||
"author": "TJ Holowaychuk <[email protected]>, Denis Bardadym <[email protected]>", | ||
"typings": "./should.d.ts", | ||
"repository": { | ||
|
@@ -16,7 +16,8 @@ | |
"prepare": "npm run build && npm run build:umd && npm run build:cjs:as-function", | ||
"pretest": "npm run build", | ||
"build:cjs:as-function": "rollup --input ./lib/should.js --output.format=cjs --output.file ./as-function.js", | ||
"test": "mocha -R mocha-better-spec-reporter --require ./cjs/should --color --check-leaks ./test/*.test.js ./test/**/*.test.js", | ||
"test": | ||
"mocha -R mocha-better-spec-reporter --require ./cjs/should --color --check-leaks ./test/*.test.js ./test/**/*.test.js", | ||
"zuul": "zuul -- ./test/**/*.test.js ./test/*.test.js", | ||
"build:umd": "rollup -c rollup.config.js --input ./lib/umd.js --output.format=iife --output.file ./should.js" | ||
}, | ||
|
@@ -33,12 +34,7 @@ | |
"typescript": "^2.5.3", | ||
"zuul": "latest" | ||
}, | ||
"keywords": [ | ||
"test", | ||
"bdd", | ||
"assert", | ||
"should" | ||
], | ||
"keywords": ["test", "bdd", "assert", "should"], | ||
"main": "./cjs/should.js", | ||
"module": "./es6/should.js", | ||
"license": "MIT", | ||
|
@@ -49,13 +45,5 @@ | |
"should-type-adaptors": "^1.0.1", | ||
"should-util": "^1.0.0" | ||
}, | ||
"files": [ | ||
"cjs/*", | ||
"es6/*", | ||
"as-function.js", | ||
"should.js", | ||
"LICENSE", | ||
"*.md", | ||
"should.d.ts" | ||
] | ||
"files": ["cjs/*", "es6/*", "as-function.js", "should.js", "LICENSE", "*.md", "should.d.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/*! | ||
* should - test framework agnostic BDD-style assertions | ||
* @version v13.1.2 | ||
* @version v13.1.3 | ||
* @author TJ Holowaychuk <[email protected]>, Denis Bardadym <[email protected]> | ||
* @link https://github.com/shouldjs/should.js | ||
* @license MIT | ||
|
@@ -3428,7 +3428,7 @@ var containAssertions = function(should, Assertion) { | |
this.params = { operator: "to contain " + i(other) }; | ||
|
||
var obj = this.obj; | ||
if (typeof obj == "string") { | ||
if (typeof obj === "string" && typeof other === "string") { | ||
// expect other to be string | ||
this.is.equal(String(other)); | ||
} else if (isIterable(obj) && isIterable(other)) { | ||
|