You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
432 B

import test from 'ava'
8 years ago
import data from './fixtures/data'
import Onionoo from '../'
8 years ago
test('Onionoo instance contains default endpoints', t => {
const onionoo = new Onionoo()
8 years ago
t.deepEqual(Object.keys(onionoo), data.defaultEndpoints)
})
test('Can pass in custom endpoint array', t => {
const endpoints = [
'foo',
'bar'
]
const onionoo = new Onionoo({ endpoints })
t.deepEqual(Object.keys(onionoo), endpoints)
})