1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-16 15:56:16 -05:00
notes/node_modules/doiuse/test/has-keys.js

7 lines
201 B
JavaScript
Raw Normal View History

2017-03-09 13:16:08 -05:00
module.exports = hasKeys
function hasKeys (t, object, keys) {
var objectKeys = Object.keys(object).sort()
var expectedKeys = [].concat(keys).sort()
return t.deepEqual(objectKeys, expectedKeys)
}