mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 16:24:55 +00:00
DEV: We already restore sinon after each test (#17529)
This commit is contained in:
parent
751a5e1430
commit
facca3f46c
@ -145,7 +145,6 @@ acceptance("Composer Actions", function (needs) {
|
|||||||
I18n.t("topic.create_long")
|
I18n.t("topic.create_long")
|
||||||
);
|
);
|
||||||
assert.ok(query(".d-editor-input").value.includes(quote));
|
assert.ok(query(".d-editor-input").value.includes(quote));
|
||||||
sinon.restore();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("reply_as_new_topic without a new_topic draft", async function (assert) {
|
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 {
|
} finally {
|
||||||
toggleCheckDraftPopup(false);
|
toggleCheckDraftPopup(false);
|
||||||
}
|
}
|
||||||
sinon.restore();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("reply_as_new_topic with new_topic draft", async function (assert) {
|
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")
|
I18n.t("composer.composer_actions.reply_as_new_topic.confirm")
|
||||||
);
|
);
|
||||||
await click(".modal-footer .btn.btn-default");
|
await click(".modal-footer .btn.btn-default");
|
||||||
sinon.restore();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -754,7 +754,6 @@ acceptance("Composer", function (needs) {
|
|||||||
} finally {
|
} finally {
|
||||||
toggleCheckDraftPopup(false);
|
toggleCheckDraftPopup(false);
|
||||||
}
|
}
|
||||||
sinon.restore();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("Loading draft also replaces the recipients", async function (assert) {
|
test("Loading draft also replaces the recipients", async function (assert) {
|
||||||
|
@ -128,8 +128,6 @@ module("Unit | Model | category", function () {
|
|||||||
bah,
|
bah,
|
||||||
"we can find a category with english slug whose parent slug is CJK"
|
"we can find a category with english slug whose parent slug is CJK"
|
||||||
);
|
);
|
||||||
|
|
||||||
sinon.restore();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("findSingleBySlug", function (assert) {
|
test("findSingleBySlug", function (assert) {
|
||||||
@ -368,8 +366,6 @@ module("Unit | Model | category", function () {
|
|||||||
[child_category1, category2, read_restricted_category],
|
[child_category1, category2, read_restricted_category],
|
||||||
"prioritize non read_restricted with limit"
|
"prioritize non read_restricted with limit"
|
||||||
);
|
);
|
||||||
|
|
||||||
sinon.restore();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("search with category slug", function (assert) {
|
test("search with category slug", function (assert) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user