mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:03:22 +08:00
FIX: Fewer 404s in JS tests
This commit is contained in:
parent
4656812e00
commit
e1bc709dc3
|
@ -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(
|
||||||
|
|
|
@ -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
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user