@ -29,3 +29,13 @@ test('Onionoo instance contains expected endpoints', t => {
t.deepEqual(Object.keys(onionoo), expectedEndpoints)
})
test('Can pass in custom endpoint array', t => {
const endpoints = [
'foo',
'bar'
]
const onionoo = new Onionoo({ endpoints })
t.deepEqual(Object.keys(onionoo), endpoints)