mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
Change endpoint from persons to people
This commit is contained in:
19
backend/apis/nodejs/node_modules/pg-pool/test/submittable.js
generated
vendored
Normal file
19
backend/apis/nodejs/node_modules/pg-pool/test/submittable.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
'use strict'
|
||||
const Cursor = require('pg-cursor')
|
||||
const expect = require('expect.js')
|
||||
const describe = require('mocha').describe
|
||||
const it = require('mocha').it
|
||||
|
||||
const Pool = require('../')
|
||||
|
||||
describe('submittle', () => {
|
||||
it('is returned from the query method', false, (done) => {
|
||||
const pool = new Pool()
|
||||
const cursor = pool.query(new Cursor('SELECT * from generate_series(0, 1000)'))
|
||||
cursor.read((err, rows) => {
|
||||
expect(err).to.be(undefined)
|
||||
expect(!!rows).to.be.ok()
|
||||
cursor.close(done)
|
||||
})
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user