MOD: migrate, change some dependencies, changed regexp for subdomains

This commit is contained in:
jotamontecino
2022-10-20 16:49:36 +02:00
parent 78c06f8fc4
commit 503772f9a9
12 changed files with 205 additions and 88 deletions
+5 -5
View File
@@ -1,8 +1,8 @@
import http from 'http';
import net from 'net';
import assert from 'assert';
const http = require( 'http');
const net = require( 'net');
const assert = require( 'assert');
import TunnelAgent from './TunnelAgent';
const TunnelAgent = require( './TunnelAgent');
describe('TunnelAgent', () => {
it('should create an empty agent', async () => {
@@ -152,7 +152,7 @@ describe('TunnelAgent', () => {
constructor() {
super();
}
createConnection(options, cb) {
cb(new Error('foo'));
}