Skip to content

Commit

Permalink
test: prepare Postgres.js test suite for Deno testing
Browse files Browse the repository at this point in the history
  • Loading branch information
hauleth committed Nov 14, 2024
1 parent a3a5067 commit f10ec27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/integration/js/postgres/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { t, nt, ot } from './test.js' // eslint-disable-line
import net from 'net'
import fs from 'fs'
import crypto from 'crypto'
import net from 'node:net'
import fs from 'node:fs'
import crypto from 'node:crypto'

import postgres from 'postgres'
const delay = ms => new Promise(r => setTimeout(r, ms))
Expand Down
4 changes: 2 additions & 2 deletions test/integration/js/postgres/test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint no-console: 0 */

import util from 'util'
import util from 'node:util'

let done = 0
let only = false
Expand Down Expand Up @@ -77,7 +77,7 @@ function exit() {
only
? console.error('⚠️', 'Not all tests were run')
: ignored
? console.error('⚠️', ignored, 'ignored test' + (ignored === 1 ? '' : 's', '\n'))
? console.error('⚠️', ignored, 'ignored test' + (ignored === 1 ? '' : 's'), '\n')
: success
? console.log('🎉')
: console.error('⚠️', 'Not good')
Expand Down

0 comments on commit f10ec27

Please sign in to comment.