Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
123456789101112131415161718192021const expect = require('expect.js')
const describe = require('mocha').describeconst it = require('mocha').it
const Pool = require('../')
describe('logging', function () { it('logs to supplied log function if given', function () { const messages = [] const log = function (msg) { messages.push(msg) } const pool = new Pool({ log: log }) return pool.query('SELECT NOW()').then(function () { expect(messages.length).to.be.greaterThan(0) return pool.end() }) })})