mirror of
https://github.com/thangisme/notes.git
synced 2024-11-12 17:06:16 -05:00
7 lines
201 B
JavaScript
7 lines
201 B
JavaScript
module.exports = hasKeys
|
|
function hasKeys (t, object, keys) {
|
|
var objectKeys = Object.keys(object).sort()
|
|
var expectedKeys = [].concat(keys).sort()
|
|
return t.deepEqual(objectKeys, expectedKeys)
|
|
}
|