DEV: Fix random typos (#23801)

Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
This commit is contained in:
Jarek Radosz 2023-10-05 20:40:53 +02:00 committed by GitHub
parent affcb44557
commit 1251757d48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -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
@action
handleResultInsertion(e) {

View File

@ -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");

View File

@ -395,7 +395,7 @@ RSpec.describe "New message", type: :system do
end
context "when filtering" do
it "shows only matching users regarless of prefix" do
it "shows only matching users regardless of prefix" do
chat_page.message_creator.filter("#bob")
expect(chat_page.message_creator).to be_listing(user_1)

View File

@ -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 value
return transferrable;
}

View File

@ -16,7 +16,7 @@ RSpec.describe TagSerializer do
expect(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" do
serialized = described_class.new(tag, scope: Guardian.new(admin), root: false).as_json
expect(serialized[:topic_count]).to eq(2)