1
0
mirror of https://github.com/fluencelabs/js-libp2p synced 2025-06-26 07:21:36 +00:00
Files
.github
doc
examples
auto-relay
chat
connection-encryption
1.js
README.md
test.js
delegated-routing
discovery-mechanisms
echo
libp2p-in-the-browser
nat-traversal
peer-and-content-routing
pnet
protocol-and-stream-muxing
pubsub
transports
webrtc-direct
README.md
package.json
test-all.js
test.js
utils.js
img
scripts
src
test
.aegir.js
.gitignore
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
ISSUE_TEMPLATE.md
LICENSE
MIGRATION_TEMPLATE.md
OKR.md
README.md
package-list.json
package.json
tsconfig.json
js-libp2p/examples/connection-encryption/test.js
Alex Potsides 0264eb62ee chore: update example tests ()
Remove some of the redundancy in the example tests
2022-01-20 13:33:01 +00:00

15 lines
322 B
JavaScript

'use strict'
const path = require('path')
const { waitForOutput } = require('../utils')
async function test () {
process.stdout.write('1.js\n')
await waitForOutput('This information is sent out encrypted to the other peer', 'node', [path.join(__dirname, '1.js')], {
cwd: __dirname
})
}
module.exports = test