diff --git a/test/index.js b/test/index.js index 700e7c0..9ab7512 100644 --- a/test/index.js +++ b/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); +});