UNPKG

nse

Version:

Get data from National Stock Exchange

11 lines (10 loc) 335 B
const nse = require('../index'); const expect = require('chai').expect; describe('Index Snapshot', () => { it('Nifty 50', async () => { let p = await nse.indexSnapshot('Nifty 50'); expect(p).to.be.an('object'); expect(p).to.have.property('data'); expect(p['data']).to.have.lengthOf(50); }); });