initial commit
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
var test = require('tape')
|
||||
|
||||
var toObject = require('./')
|
||||
|
||||
var arr = [
|
||||
['id', 1337],
|
||||
['username', 'olalonde'],
|
||||
['email', 'olalonde@gmail.com'],
|
||||
]
|
||||
|
||||
test(function (t) {
|
||||
var obj = arr.reduce(toObject)
|
||||
t.deepEqual(obj, {
|
||||
id: 1337,
|
||||
username: 'olalonde',
|
||||
email: 'olalonde@gmail.com',
|
||||
})
|
||||
t.end()
|
||||
})
|
||||
Reference in New Issue
Block a user