Skip to content

Commit 8b26c0b

Browse files
committed
feat: add plaintext encryption tests
Adds tests for plaintext encryption
1 parent 2649d34 commit 8b26c0b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export type NodeType = 'js' | 'go'
5858
export type PeerIdType = 'rsa' | 'ed25519' | 'secp256k1'
5959
export type PubSubRouter = 'gossipsub' | 'floodsub'
6060
export type Muxer = 'mplex' | 'yamux'
61-
export type Encryption = 'noise' | 'tls'
61+
export type Encryption = 'noise' | 'tls' | 'plaintext'
6262
export type TransportType = 'tcp' | 'webtransport' | 'webrtc-direct'
6363

6464
export interface SpawnOptions {

src/utils/test-matrix.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface TestFunction {
88
export function runTests (name: string, fn: TestFunction, factory: DaemonFactory): void {
99
const keyTypes: PeerIdType[] = ['ed25519', 'rsa', 'secp256k1']
1010
const impls: NodeType[] = ['js', 'go']
11-
const encrypters: Encryption[] = ['noise', 'tls']
11+
const encrypters: Encryption[] = ['noise', 'tls', 'plaintext']
1212
const muxers: Muxer[] = ['mplex', 'yamux']
1313

1414
for (const keyType of keyTypes) {

0 commit comments

Comments
 (0)