• 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
名称
最后提交
最后更新
.github 正在载入提交数据...
art 正在载入提交数据...
doc 正在载入提交数据...
node 正在载入提交数据...
rust 正在载入提交数据...
worker 正在载入提交数据...
.gitignore 正在载入提交数据...
.npmrc 正在载入提交数据...
CHANGELOG.md 正在载入提交数据...
Cargo.lock 正在载入提交数据...
Cargo.toml 正在载入提交数据...
LICENSE 正在载入提交数据...
README.md 正在载入提交数据...
npm-scripts.mjs 正在载入提交数据...
package-lock.json 正在载入提交数据...
package.json 正在载入提交数据...
rust-toolchain.toml 正在载入提交数据...