Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Commit

Permalink
Release 13.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
btd committed Oct 28, 2017
1 parent 76ed8ce commit cc2f68b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 19 deletions.
5 changes: 5 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
13.1.3 / 2017-10-28
===================

* Fix weird bug in `.containDeep` when given object is string (see \#157)

13.1.2 / 2017-10-10
===================

Expand Down
22 changes: 5 additions & 17 deletions package.json
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": {
Expand All @@ -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"
},
Expand All @@ -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",
Expand All @@ -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"]
}
4 changes: 2 additions & 2 deletions should.js
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
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit cc2f68b

Please sign in to comment.