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.

14 lines
355 B

7 years ago
import test from 'ava';
import cryptocurrencies from '.';
test('produces a JSON object', t => {
t.is(typeof cryptocurrencies, 'object');
t.is(cryptocurrencies.BTC, 'Bitcoin');
});
test('.symbols', t => {
const symbols = cryptocurrencies.symbols();
t.is(Array.isArray(symbols), true);
t.is(symbols.length, Object.keys(cryptocurrencies).length);
});