mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
18 lines
387 B
JavaScript
18 lines
387 B
JavaScript
import assert from 'node:assert'
|
|
import { describe, it } from 'node:test'
|
|
import pg, { Client, Pool } from 'pg'
|
|
|
|
describe('pg', () => {
|
|
it('should export Client constructor', () => {
|
|
assert.ok(new Client())
|
|
})
|
|
|
|
it('should export Pool constructor', () => {
|
|
assert.ok(new Pool())
|
|
})
|
|
|
|
it('should still provide default export', () => {
|
|
assert.ok(new pg.Pool())
|
|
})
|
|
})
|