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

Commit

Permalink
Release 11.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
btd committed Jan 27, 2017
1 parent 51a3c5e commit 48fac91
Show file tree
Hide file tree
Showing 4 changed files with 3,531 additions and 3,531 deletions.
6 changes: 6 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
11.2.0 / 2017-01-27
===================

* Added `.only` modifier for `.keys` to check also size
* Soft deprecate `.enumerable(s)`

11.1.2 / 2016-12-10
===================

Expand Down
26 changes: 0 additions & 26 deletions lib/ext/property.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,6 @@ export default function(should, Assertion) {
return args;
}


/**
* Asserts given object has enumerable property with optionally value. **On success it change given object to be value of property**.
* **Deprecated**. Use .keys
*
* @name enumerable
* @memberOf Assertion
* @category assertion property
* @param {string} name Name of property
* @param {*} [val] Optional property value to check
* @example
*
* ({ a: 10 }).should.have.enumerable('a');
*/
Assertion.add('enumerable', function(name, val) {
name = convertPropertyName(name);

Expand All @@ -80,18 +66,6 @@ export default function(should, Assertion) {
this.have.propertyWithDescriptor(name, desc);
});

/**
* Asserts given object has enumerable properties.
* **Deprecated**. Use .keys
*
* @name enumerables
* @memberOf Assertion
* @category assertion property
* @param {Array|...string|Object} names Names of property
* @example
*
* ({ a: 10, b: 10 }).should.have.enumerables('a');
*/
Assertion.add('enumerables', function(/*names*/) {
var args = processPropsArgs.apply(null, arguments);

Expand Down
4 changes: 2 additions & 2 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": "11.1.2",
"version": "11.2.0",
"author": "TJ Holowaychuk <[email protected]>, Denis Bardadym <[email protected]>",
"repository": {
"type": "git",
Expand All @@ -24,7 +24,7 @@
"eslint-config-shouldjs": "^1.0.0",
"mocha": "latest",
"mocha-better-spec-reporter": "latest",
"rollup": "0.34.7",
"rollup": "^0.41.4",
"rollup-plugin-node-resolve": "^2.0.0",
"zuul": "latest"
},
Expand Down
Loading

0 comments on commit 48fac91

Please sign in to comment.