Browse Source

Test coin.get helper method seaarches symbols

pull/3/merge
Luke Childs 7 years ago
parent
commit
66e753923f
  1. 11
      test/index.js

11
test/index.js

@ -14,3 +14,14 @@ test('coin object has expected properties', t => {
const actualKeys = Object.keys(coins[0]);
t.deepEqual(expectedKeys, actualKeys);
});
test('coin.get helper method seaarches symbols', t => {
const expectedBtc = {
id: 'bitcoin',
symbol: 'BTC',
name: 'Bitcoin',
maxSupply: 21000000
};
const actualBtc = coins.get('BTC');
t.deepEqual(expectedBtc, actualBtc);
});

Loading…
Cancel
Save