mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 01:37:37 -04: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)
|
|
}
|