mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
19 lines
567 B
JavaScript
19 lines
567 B
JavaScript
import protocol, { NoticeMessage, DatabaseError } from 'pg-protocol/dist/messages.js'
|
|
import { describe, it } from 'node:test'
|
|
import { strict as assert } from 'node:assert'
|
|
|
|
describe('pg-protocol', () => {
|
|
it('should export database error', () => {
|
|
assert.ok(DatabaseError)
|
|
})
|
|
it('should export protocol', () => {
|
|
assert.ok(protocol)
|
|
assert.ok(protocol.noData)
|
|
assert.ok(protocol.parseComplete)
|
|
assert.ok(protocol.NoticeMessage)
|
|
})
|
|
it('should export NoticeMessage from file in dist folder', () => {
|
|
assert.ok(NoticeMessage)
|
|
})
|
|
})
|