• Iñaki Baz Castillo's avatar
    Make Node tests independent (part 2) (#1296) · e51b47bd
    由 Iñaki Baz Castillo 提交于
    - Just done in `test-Router.ts` as POC.
    - Avoid declaring global variables in test files. Put them into `ctx: TestContext` instead.
    - Things in `ctx` should be const/frozen or reset in each `test()` execution.
    - So use a new `utils.deepFreeze()` function which freezes the object and would throw upon any  modification attempt.
    e51b47bd
名称
最后提交
最后更新
..
data 正在载入提交数据...
test-ActiveSpeakerObserver.ts 正在载入提交数据...
test-AudioLevelObserver.ts 正在载入提交数据...
test-Consumer.ts 正在载入提交数据...
test-DataConsumer.ts 正在载入提交数据...
test-DataProducer.ts 正在载入提交数据...
test-DirectTransport.ts 正在载入提交数据...
test-PipeTransport.ts 正在载入提交数据...
test-PlainTransport.ts 正在载入提交数据...
test-Producer.ts 正在载入提交数据...
test-Router.ts 正在载入提交数据...
test-WebRtcServer.ts 正在载入提交数据...
test-WebRtcTransport.ts 正在载入提交数据...
test-Worker.ts 正在载入提交数据...
test-mediasoup.ts 正在载入提交数据...
test-multiopus.ts 正在载入提交数据...
test-node-sctp.ts 正在载入提交数据...
test-ortc.ts 正在载入提交数据...