Skip to content

Commit 67a3a5c

Browse files
committed
fix: fixed type bug in tests
[ci skip]
1 parent 2379a73 commit 67a3a5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/QUICServer.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { X509Certificate } from '@peculiar/x509';
2-
import type { Hostname, ServerCrypto } from '@/types';
2+
import type { Host, ServerCrypto } from '@/types';
33
import Logger, { LogLevel, StreamHandler, formatting } from '@matrixai/logger';
44
import QUICServer from '@/QUICServer';
55
import * as utils from '@/utils';
@@ -253,7 +253,7 @@ describe(QUICServer.name, () => {
253253
key: keyPairEd25519PEM.privateKey,
254254
cert: certEd25519PEM,
255255
},
256-
resolveHostname: () => '127.0.0.1' as Hostname,
256+
resolveHostname: () => '127.0.0.1' as Host,
257257
logger: logger.getChild('QUICServer'),
258258
});
259259
await quicServer.start({

0 commit comments

Comments
 (0)