mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: apply new coding standards (#10592)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("Topic - Anonymous");
|
||||
|
||||
QUnit.test("Enter a Topic", async assert => {
|
||||
QUnit.test("Enter a Topic", async (assert) => {
|
||||
await visit("/t/internationalization-localization/280/1");
|
||||
assert.ok(exists("#topic"), "The topic was rendered");
|
||||
assert.ok(exists("#topic .cooked"), "The topic has cooked posts");
|
||||
@@ -11,24 +11,24 @@ QUnit.test("Enter a Topic", async assert => {
|
||||
);
|
||||
});
|
||||
|
||||
QUnit.test("Enter without an id", async assert => {
|
||||
QUnit.test("Enter without an id", async (assert) => {
|
||||
await visit("/t/internationalization-localization");
|
||||
assert.ok(exists("#topic"), "The topic was rendered");
|
||||
});
|
||||
|
||||
QUnit.test("Enter a 404 topic", async assert => {
|
||||
QUnit.test("Enter a 404 topic", async (assert) => {
|
||||
await visit("/t/not-found/404");
|
||||
assert.ok(!exists("#topic"), "The topic was not rendered");
|
||||
assert.ok(exists(".topic-error"), "An error message is displayed");
|
||||
});
|
||||
|
||||
QUnit.test("Enter without access", async assert => {
|
||||
QUnit.test("Enter without access", async (assert) => {
|
||||
await visit("/t/i-dont-have-access/403");
|
||||
assert.ok(!exists("#topic"), "The topic was not rendered");
|
||||
assert.ok(exists(".topic-error"), "An error message is displayed");
|
||||
});
|
||||
|
||||
QUnit.test("Enter with 500 errors", async assert => {
|
||||
QUnit.test("Enter with 500 errors", async (assert) => {
|
||||
await visit("/t/throws-error/500");
|
||||
assert.ok(!exists("#topic"), "The topic was not rendered");
|
||||
assert.ok(exists(".topic-error"), "An error message is displayed");
|
||||
|
||||
Reference in New Issue
Block a user