A platform for community discussion. Free, open, simple.
DEV: Fix random typos (#23801)
Jarek Radosz1251757d48d5
diff --git a/app/assets/javascripts/discourse/app/services/search.js b/app/assets/javascripts/discourse/app/services/search.jsindex 2c9c03ea2d5..8c1727663e1 100644--- a/app/assets/javascripts/discourse/app/services/search.js+++ b/app/assets/javascripts/discourse/app/services/search.js@@ -30,7 +30,7 @@ export default class Search extends Service {// - Results::MoreLink// - Results::RecentSearches//- // To minimze the duplicate logic we will create a shared action here+ // To minimize the duplicate logic we will create a shared action here// that can be reused across all of the components@actionhandleResultInsertion(e) {diff --git a/app/assets/javascripts/discourse/tests/unit/lib/lightbox/process-html-test.js b/app/assets/javascripts/discourse/tests/unit/lib/lightbox/process-html-test.jsindex 7621b08e4e3..5d33854a27a 100644--- a/app/assets/javascripts/discourse/tests/unit/lib/lightbox/process-html-test.js+++ b/app/assets/javascripts/discourse/tests/unit/lib/lightbox/process-html-test.js@@ -16,7 +16,7 @@ module("Unit | lib | Experimental lightbox | processHTML()", function (hooks) {const imageUploaderWrap = domFromString(generateImageUploaderMarkup())[0];const selector = SELECTORS.DEFAULT_ITEM_SELECTOR;- test("returns the correct object from the proccessed element", async function (assert) {+ test("returns the correct object from the processed element", async function (assert) {const container = wrap.cloneNode(true);const { items, startingIndex } = await processHTML({@@ -82,7 +82,7 @@ module("Unit | lib | Experimental lightbox | processHTML()", function (hooks) {assert.strictEqual(items.length, 3);});- test("fallsback to src when no href is defined for fullsizeURL", async function (assert) {+ test("falls back to src when no href is defined for fullsizeURL", async function (assert) {const container = wrap.cloneNode(true);container.querySelector("a").removeAttribute("href");diff --git a/plugins/chat/spec/system/new_message_spec.rb b/plugins/chat/spec/system/new_message_spec.rbindex 44dd79712a7..f201c33ed14 100644--- a/plugins/chat/spec/system/new_message_spec.rb+++ b/plugins/chat/spec/system/new_message_spec.rb@@ -395,7 +395,7 @@ RSpec.describe "New message", type: :system doendcontext "when filtering" do- it "shows only matching users regarless of prefix" do+ it "shows only matching users regardless of prefix" dochat_page.message_creator.filter("#bob")expect(chat_page.message_creator).to be_listing(user_1)diff --git a/public/javascripts/media-optimization-worker.js b/public/javascripts/media-optimization-worker.jsindex e831b2d9016..7aa198738db 100644--- a/public/javascripts/media-optimization-worker.js+++ b/public/javascripts/media-optimization-worker.js@@ -108,10 +108,10 @@ async function optimize(imageData, fileName, width, height, settings) {logIfDebug(`Reduction: ${(initialSize / finalSize).toFixed(1)}x speedup`);if (finalSize < 20000) {- throw "Final size suspciously small, discarding optimizations";+ throw "Final size suspiciously small, discarding optimizations";}- let transferrable = Uint8Array.from(result).buffer; // decoded was allocated inside WASM so it **cannot** be transfered to another context, need to copy by value+ let transferrable = Uint8Array.from(result).buffer; // decoded was allocated inside WASM so it **cannot** be transferred to another context, need to copy by valuereturn transferrable;}diff --git a/spec/serializers/tag_serializer_spec.rb b/spec/serializers/tag_serializer_spec.rbindex c9eab114fc7..4dc5defb3ce 100644--- a/spec/serializers/tag_serializer_spec.rb+++ b/spec/serializers/tag_serializer_spec.rb@@ -16,7 +16,7 @@ RSpec.describe TagSerializer doexpect(serialized[:topic_count]).to eq(1)end- it "should return the vavlue of `Tag#topic_count` for a staff user" do+ it "should return the value of `Tag#topic_count` for a staff user" doserialized = described_class.new(tag, scope: Guardian.new(admin), root: false).as_jsonexpect(serialized[:topic_count]).to eq(2)