mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
node: fix test-net-server-options.js (#17909)
This commit is contained in:
16
test/js/node/test/parallel/test-net-server-options.js
Normal file
16
test/js/node/test/parallel/test-net-server-options.js
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
require('../common');
|
||||
const assert = require('assert');
|
||||
const net = require('net');
|
||||
|
||||
assert.throws(() => net.createServer('path'),
|
||||
{
|
||||
code: 'ERR_INVALID_ARG_TYPE',
|
||||
name: 'TypeError'
|
||||
});
|
||||
|
||||
assert.throws(() => net.createServer(0),
|
||||
{
|
||||
code: 'ERR_INVALID_ARG_TYPE',
|
||||
name: 'TypeError'
|
||||
});
|
||||
Reference in New Issue
Block a user