DEV: We already restore sinon after each test (#17529)

This commit is contained in:
Jarek Radosz 2022-07-16 22:57:33 +02:00 committed by GitHub
parent 751a5e1430
commit facca3f46c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 8 deletions

View File

@ -145,7 +145,6 @@ acceptance("Composer Actions", function (needs) {
I18n.t("topic.create_long")
);
assert.ok(query(".d-editor-input").value.includes(quote));
sinon.restore();
});
test("reply_as_new_topic without a new_topic draft", async function (assert) {
@ -471,7 +470,6 @@ acceptance("Composer Actions With New Topic Draft", function (needs) {
} finally {
toggleCheckDraftPopup(false);
}
sinon.restore();
});
test("reply_as_new_topic with new_topic draft", async function (assert) {
@ -486,7 +484,6 @@ acceptance("Composer Actions With New Topic Draft", function (needs) {
I18n.t("composer.composer_actions.reply_as_new_topic.confirm")
);
await click(".modal-footer .btn.btn-default");
sinon.restore();
});
});

View File

@ -754,7 +754,6 @@ acceptance("Composer", function (needs) {
} finally {
toggleCheckDraftPopup(false);
}
sinon.restore();
});
test("Loading draft also replaces the recipients", async function (assert) {

View File

@ -128,8 +128,6 @@ module("Unit | Model | category", function () {
bah,
"we can find a category with english slug whose parent slug is CJK"
);
sinon.restore();
});
test("findSingleBySlug", function (assert) {
@ -368,8 +366,6 @@ module("Unit | Model | category", function () {
[child_category1, category2, read_restricted_category],
"prioritize non read_restricted with limit"
);
sinon.restore();
});
test("search with category slug", function (assert) {