From 113a5b8b6aa6b85cb4a5854bd85ad3f29ad8cf1e Mon Sep 17 00:00:00 2001 From: zenheart Date: Wed, 2 Aug 2017 08:55:45 +0800 Subject: [PATCH] fix: correct hasAnyKeys comment error --- lib/chai/interface/assert.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/chai/interface/assert.js b/lib/chai/interface/assert.js index 86f4833d1..4809fc070 100644 --- a/lib/chai/interface/assert.js +++ b/lib/chai/interface/assert.js @@ -1675,10 +1675,10 @@ module.exports = function (chai, util) { * You can also provide a single object instead of a `keys` array and its keys * will be used as the expected set of keys. * - * assert.hasAnyKey({foo: 1, bar: 2, baz: 3}, ['foo', 'iDontExist', 'baz']); - * assert.hasAnyKey({foo: 1, bar: 2, baz: 3}, {foo: 30, iDontExist: 99, baz: 1337]); - * assert.hasAnyKey(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{foo: 1}, 'thisKeyDoesNotExist']); - * assert.hasAnyKey(new Set([{foo: 'bar'}, 'anotherKey'], [{foo: 'bar'}, 'thisKeyDoesNotExist']); + * assert.hasAnyKeys({foo: 1, bar: 2, baz: 3}, ['foo', 'iDontExist', 'baz']); + * assert.hasAnyKeys({foo: 1, bar: 2, baz: 3}, {foo: 30, iDontExist: 99, baz: 1337}); + * assert.hasAnyKeys(new Map([[{foo: 1}, 'bar'], ['key', 'value']]), [{foo: 1}, 'key']); + * assert.hasAnyKeys(new Set([{foo: 'bar'}, 'anotherKey']), [{foo: 'bar'}, 'anotherKey']); * * @name hasAnyKeys * @param {Mixed} object