mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Make prettier happy.
This commit is contained in:
parent
21ebb1cd54
commit
767395449f
@ -23,7 +23,9 @@ const assertNoSecondary = assert => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
find(".display-row.secondary-emails .value").text().trim(),
|
find(".display-row.secondary-emails .value")
|
||||||
|
.text()
|
||||||
|
.trim(),
|
||||||
I18n.t("user.email.no_secondary"),
|
I18n.t("user.email.no_secondary"),
|
||||||
"it should not display secondary emails"
|
"it should not display secondary emails"
|
||||||
);
|
);
|
||||||
@ -44,6 +46,7 @@ const assertMultipleSecondary = assert => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
QUnit.test("viewing self without secondary emails", async assert => {
|
QUnit.test("viewing self without secondary emails", async assert => {
|
||||||
|
// prettier-ignore
|
||||||
server.get("/admin/users/1.json", () => { // eslint-disable-line no-undef
|
server.get("/admin/users/1.json", () => { // eslint-disable-line no-undef
|
||||||
return responseWithSecondary([]);
|
return responseWithSecondary([]);
|
||||||
});
|
});
|
||||||
@ -54,6 +57,7 @@ QUnit.test("viewing self without secondary emails", async assert => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test("viewing self with multiple secondary emails", async assert => {
|
QUnit.test("viewing self with multiple secondary emails", async assert => {
|
||||||
|
// prettier-ignore
|
||||||
server.get("/admin/users/1.json", () => { // eslint-disable-line no-undef
|
server.get("/admin/users/1.json", () => { // eslint-disable-line no-undef
|
||||||
return responseWithSecondary([
|
return responseWithSecondary([
|
||||||
"eviltrout1@example.com",
|
"eviltrout1@example.com",
|
||||||
@ -80,6 +84,7 @@ QUnit.test("viewing another user with no secondary email", async assert => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test("viewing another account with secondary emails", async assert => {
|
QUnit.test("viewing another account with secondary emails", async assert => {
|
||||||
|
// prettier-ignore
|
||||||
server.get("/u/regular/emails.json", () => { // eslint-disable-line no-undef
|
server.get("/u/regular/emails.json", () => { // eslint-disable-line no-undef
|
||||||
return [
|
return [
|
||||||
200,
|
200,
|
||||||
|
Loading…
Reference in New Issue
Block a user