Make Node tests independent (part 2) (#1296)
- 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.
正在显示
请
注册
或者
登录
后发表评论