FIX: Fewer 404s in JS tests

This commit is contained in:
Robin Ward 2020-07-16 16:23:54 -04:00
parent 4656812e00
commit e1bc709dc3
2 changed files with 14 additions and 14 deletions

View File

@ -59,7 +59,7 @@ componentTest("without image", {
}); });
componentTest("with placeholder", { componentTest("with placeholder", {
template: "{{image-uploader placeholderUrl='/some/image.png'}}", template: "{{image-uploader placeholderUrl='/images/avatar.png'}}",
test(assert) { test(assert) {
assert.equal( assert.equal(

View File

@ -9,7 +9,7 @@ export default {
category: "required", category: "required",
preview: null, preview: null,
secret: false, secret: false,
type: "string", type: "string"
}, },
{ {
setting: "contact_email", setting: "contact_email",
@ -20,7 +20,7 @@ export default {
category: "required", category: "required",
preview: null, preview: null,
secret: false, secret: false,
type: "email", type: "email"
}, },
{ {
setting: "site_contact_username", setting: "site_contact_username",
@ -31,17 +31,17 @@ export default {
category: "required", category: "required",
preview: null, preview: null,
secret: false, secret: false,
type: "username", type: "username"
}, },
{ {
setting: "logo", setting: "logo",
description: "Some logo", description: "Some logo",
default: "", default: "",
value: "/some/image", value: "/images/avatar.png",
category: "required", category: "required",
preview: null, preview: null,
secret: false, secret: false,
type: "upload", type: "upload"
}, },
{ {
setting: "top_menu", setting: "top_menu",
@ -61,24 +61,24 @@ export default {
"categories", "categories",
"read", "read",
"posted", "posted",
"bookmarks", "bookmarks"
], ],
list_type: "compact", list_type: "compact"
}, },
{ {
setting: "plugin_logo", setting: "plugin_logo",
description: "Some plugin logo", description: "Some plugin logo",
default: "", default: "",
value: "/some/image", value: "/images/avatar.png",
category: "required", category: "required",
preview: null, preview: null,
secret: false, secret: false,
type: "upload", type: "upload",
plugin: "discourse-logo", plugin: "discourse-logo"
}, }
], ],
diags: { diags: {
last_message_processed: null, last_message_processed: null
}, }
}, }
}; };