1
0
mirror of https://github.com/fluencelabs/js-libp2p-websockets synced 2025-04-03 21:01:21 +00:00

25 lines
560 B
JavaScript
Raw Normal View History

2016-08-11 14:50:44 +02:00
/* eslint-env mocha */
'use strict'
const tests = require('interface-transport')
const multiaddr = require('multiaddr')
2017-03-23 15:09:06 +00:00
const WS = require('../src')
2016-08-11 14:50:44 +02:00
describe('compliance', () => {
tests({
2017-03-23 15:09:06 +00:00
setup (callback) {
let ws = new WS()
2016-08-11 14:50:44 +02:00
const addrs = [
multiaddr('/ip4/127.0.0.1/tcp/9091/ws'),
multiaddr('/ip4/127.0.0.1/tcp/9092/wss'),
multiaddr('/dns4/ipfs.io/tcp/9092/ws'),
multiaddr('/dns4/ipfs.io/tcp/9092/wss')
2016-08-11 14:50:44 +02:00
]
2017-03-23 15:09:06 +00:00
callback(null, ws, addrs)
2016-08-11 14:50:44 +02:00
},
2017-03-23 15:09:06 +00:00
teardown (callback) {
callback()
2016-08-11 14:50:44 +02:00
}
})
})