ember-sinon-sinoff:Ember插件,在每次测试后自动恢复sinon

时间:2021-02-04 22:54:40
【文件属性】:
文件名称:ember-sinon-sinoff:Ember插件,在每次测试后自动恢复sinon
文件大小:144KB
文件格式:ZIP
更新时间:2021-02-04 22:54:40
ember restore addon sinon EmberJavaScript 辛比-西诺夫 该软件包已被弃用:请使用 。 该插件将sinon的自动沙箱添加到您的QUnit测试中。 这确保了sinon被正确隔离,并且在测试执行之间不会泄漏状态。 安装 跑: ember install ember-sinon-sinoff 用法 ember-sinon-sinoff插件支持两种不同的API版本: 经典API,可自动将沙箱创建和还原分别连接到QUnit.testStart和QUnit.testDone 新的QUnit hooks API,它接受一个hooks对象并将沙箱创建和恢复连接到模块的beforeEach和afterEach 。 经典API 要使用,请从您的t
【文件预览】:
ember-sinon-sinoff-master
----.gitignore(362B)
----README.md(3KB)
----CHANGELOG.md(126B)
----ember-cli-build.js(494B)
----.ember-cli(280B)
----tests()
--------integration()
--------test-helper.js(228B)
--------dummy()
--------unit()
--------helpers()
--------index.html(1KB)
--------.eslintrc.js(55B)
----testem.js(581B)
----addon-test-support()
--------setup-sinon-sinoff.js(447B)
--------.gitkeep(0B)
--------index.js(68B)
--------setup-global-sinon-sinoff.js(460B)
--------sinon-sinoff.js(2KB)
----app()
--------.gitkeep(0B)
----package.json(2KB)
----CONTRIBUTING.md(639B)
----vendor()
--------.gitkeep(0B)
----index.js(71B)
----config()
--------ember-try.js(2KB)
--------environment.js(90B)
----LICENSE.md(1KB)
----addon()
--------.gitkeep(0B)
----.watchmanconfig(37B)
----.eslintignore(240B)
----.template-lintrc.js(62B)
----.npmignore(404B)
----.travis.yml(1KB)
----.editorconfig(368B)
----yarn.lock(334KB)
----.eslintrc.js(1KB)

网友评论