From e1bc709dc35a9508dd5ec0bad8932480aa165e6b Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 16 Jul 2020 16:23:54 -0400 Subject: [PATCH] FIX: Fewer 404s in JS tests --- .../components/image-uploader-test.js | 2 +- test/javascripts/fixtures/site_settings.js | 26 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/test/javascripts/components/image-uploader-test.js b/test/javascripts/components/image-uploader-test.js index 409b5432052..4ef3f1e64b3 100644 --- a/test/javascripts/components/image-uploader-test.js +++ b/test/javascripts/components/image-uploader-test.js @@ -59,7 +59,7 @@ componentTest("without image", { }); componentTest("with placeholder", { - template: "{{image-uploader placeholderUrl='/some/image.png'}}", + template: "{{image-uploader placeholderUrl='/images/avatar.png'}}", test(assert) { assert.equal( diff --git a/test/javascripts/fixtures/site_settings.js b/test/javascripts/fixtures/site_settings.js index c31d4c84120..ef9a4ce1d03 100644 --- a/test/javascripts/fixtures/site_settings.js +++ b/test/javascripts/fixtures/site_settings.js @@ -9,7 +9,7 @@ export default { category: "required", preview: null, secret: false, - type: "string", + type: "string" }, { setting: "contact_email", @@ -20,7 +20,7 @@ export default { category: "required", preview: null, secret: false, - type: "email", + type: "email" }, { setting: "site_contact_username", @@ -31,17 +31,17 @@ export default { category: "required", preview: null, secret: false, - type: "username", + type: "username" }, { setting: "logo", description: "Some logo", default: "", - value: "/some/image", + value: "/images/avatar.png", category: "required", preview: null, secret: false, - type: "upload", + type: "upload" }, { setting: "top_menu", @@ -61,24 +61,24 @@ export default { "categories", "read", "posted", - "bookmarks", + "bookmarks" ], - list_type: "compact", + list_type: "compact" }, { setting: "plugin_logo", description: "Some plugin logo", default: "", - value: "/some/image", + value: "/images/avatar.png", category: "required", preview: null, secret: false, type: "upload", - plugin: "discourse-logo", - }, + plugin: "discourse-logo" + } ], diags: { - last_message_processed: null, - }, - }, + last_message_processed: null + } + } };