'use strict'constCursor=require('pg-cursor')constexpect=require('expect.js')constdescribe=require('mocha').describeconstit=require('mocha').itconstPool=require('../')describe('submittle',()=>{it('is returned from the query method',false,(done)=>{constpool=newPool()constcursor=pool.query(newCursor('SELECT * from generate_series(0, 1000)'))cursor.read((err,rows)=>{expect(err).to.be(undefined)expect(!!rows).to.be.ok()cursor.close(done)})})})