DEV: apply new coding standards (#10592)

This commit is contained in:
Joffrey JAFFEUX
2020-09-04 13:42:47 +02:00
committed by GitHub
parent 80dfaeb0d2
commit 52672b9eab
1473 changed files with 9386 additions and 9958 deletions
@@ -2,7 +2,7 @@ import { acceptance } from "helpers/qunit-helpers";
acceptance("User Drafts", { loggedIn: true });
QUnit.test("Stream", async assert => {
QUnit.test("Stream", async (assert) => {
await visit("/u/eviltrout/activity/drafts");
assert.ok(find(".user-stream-item").length === 3, "has drafts");
@@ -13,15 +13,13 @@ QUnit.test("Stream", async assert => {
);
});
QUnit.test("Stream - resume draft", async assert => {
QUnit.test("Stream - resume draft", async (assert) => {
await visit("/u/eviltrout/activity/drafts");
assert.ok(find(".user-stream-item").length > 0, "has drafts");
await click(".user-stream-item .resume-draft");
assert.equal(
find(".d-editor-input")
.val()
.trim(),
find(".d-editor-input").val().trim(),
"A fun new topic for testing drafts."
);
});