我正在用 Ember-qunit 编写单元测试。我想在 performance.now 上设置自定义值。
我试过sinon.stub(performance,'now', 60000);了,但这没有用。我明白了TypeError: stub(obj, 'meth', fn) has been removed.
sinon.stub(performance,'now', 60000);
TypeError: stub(obj, 'meth', fn) has been removed.
我如何使用 sinon.js 存根 performance.now()?
谢谢
翻翻过去那场雪
守候你守候我
相关分类