Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #145 from ckeditor/t/ckeditor5/1218
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Aug 24, 2018
2 parents e9b2d5c + 4c72ada commit f21d4d2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/_utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* General test utils for CKEditor.
*/
const utils = {
sinon,

/**
* Creates Sinon sandbox in {@link utils#sinon} and plugs `afterEach()` callback which
* restores all spies and stubs created in this sandbox.
Expand All @@ -30,11 +32,8 @@ const utils = {
* **Note**: Do not use `testUtils.createSinonSandbox()` outside `describe()` block as it will attach `afterEach()` calls
* to all test - not only those in current file.
*/
createSinonSandbox() {
before( () => {
utils.sinon = sinon.sandbox.create();
} );

createSinonSandbox() {
afterEach( () => {
utils.sinon.restore();
} );
Expand Down

0 comments on commit f21d4d2

Please sign in to comment.