UNPKG

zaif

Version:

Zaif API wrapper for Node.js

31 lines (26 loc) 548 B
'use strict'; import { assert } from 'chai'; import Zaif from '../lib/zaif'; describe('Public API', () => { const zaif = new Zaif(); it('last_price', () => { return zaif.lastPrice().then(res => { assert.isOk(res); }); }); it('ticker', () => { return zaif.ticker().then(res => { assert.isOk(res); }); }); it('trades', () => { return zaif.trades().then(res => { assert.isOk(res); }); }); it('depth', () => { return zaif.depth().then(res => { assert.isOk(res); }); }); });