Skip to content

Commit 125e5ce

Browse files
committed
test: convert socket error callback to typescript
Update socket-error-callback-test.ts
1 parent 5491633 commit 125e5ce

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/unit/compat/socket-error-callback-test.js renamed to test/unit/compat/socket-error-callback-test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
if (process.env.INCLUDE_COMPAT_TESTS) {
2-
const zmq = require("./load")
3-
const {assert} = require("chai")
1+
import * as zmq from "../../../v5-compat"
2+
import type {Socket} from "../../../v5-compat"
3+
import {isFullError} from "../../../src/errors"
44

5+
if (process.env.INCLUDE_COMPAT_TESTS) {
56
describe("compat socket error callback", function () {
6-
let sock
7+
let sock: Socket
78

89
beforeEach(function () {
910
sock = zmq.socket("router")

0 commit comments

Comments
 (0)