Browse Source

Test passing in custom endpoint array

pull/14/head
Luke Childs 8 years ago
parent
commit
230d6190d0
  1. 10
      test/unit.js

10
test/unit.js

@ -29,3 +29,13 @@ test('Onionoo instance contains expected endpoints', t => {
t.deepEqual(Object.keys(onionoo), expectedEndpoints) 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)
})

Loading…
Cancel
Save