A platform for community discussion. Free, open, simple.
DEV: Fix random typos (#28891)
Jarek Radosz896f116443e9
diff --git a/app/assets/javascripts/discourse/tests/integration/components/light-dark-img-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/light-dark-img-test.gjsindex da52597c2ee..571f4004d7a 100644--- a/app/assets/javascripts/discourse/tests/integration/components/light-dark-img-test.gjs+++ b/app/assets/javascripts/discourse/tests/integration/components/light-dark-img-test.gjs@@ -1,7 +1,7 @@import { getOwner } from "@ember/owner";import { render } from "@ember/test-helpers";import { module, test } from "qunit";-import LigthDarkImg from "discourse/components/light-dark-img";+import LightDarkImg from "discourse/components/light-dark-img";import { setupRenderingTest } from "discourse/tests/helpers/component-test";import { count, exists, query } from "discourse/tests/helpers/qunit-helpers";@@ -21,7 +21,7 @@ module("Integration | Component | light-dark-img", function (hooks) {this.session.set("defaultColorSchemeIsDark", false);this.session.set("darkModeAvailable", false);- await render(<template><LigthDarkImg /></template>);+ await render(<template><LightDarkImg /></template>);assert.ok(!exists("picture"), "there is no picture tag");assert.ok(!exists("img"), "there is no img tag");@@ -32,7 +32,7 @@ module("Integration | Component | light-dark-img", function (hooks) {this.session.set("defaultColorSchemeIsDark", false);this.session.set("darkModeAvailable", false);- await render(<template><LigthDarkImg @lightImg={{lightSrc}} /></template>);+ await render(<template><LightDarkImg @lightImg={{lightSrc}} /></template>);assert.ok(!exists("picture"), "there is no picture tag");assert.strictEqual(count("img"), 1, "there is an img tag");@@ -49,7 +49,7 @@ module("Integration | Component | light-dark-img", function (hooks) {this.session.set("darkModeAvailable", false);await render(<template>- <LigthDarkImg @lightImg={{lightSrc}} @darkImg={{darkSrc}} />+ <LightDarkImg @lightImg={{lightSrc}} @darkImg={{darkSrc}} /></template>);assert.ok(!exists("picture"), "there is no picture tag");@@ -66,7 +66,7 @@ module("Integration | Component | light-dark-img", function (hooks) {this.session.set("defaultColorSchemeIsDark", false);this.session.set("darkModeAvailable", true);- await render(<template><LigthDarkImg /></template>);+ await render(<template><LightDarkImg /></template>);assert.ok(!exists("picture"), "there is no picture tag");assert.ok(!exists("img"), "there is no img tag");@@ -77,7 +77,7 @@ module("Integration | Component | light-dark-img", function (hooks) {this.session.set("defaultColorSchemeIsDark", false);this.session.set("darkModeAvailable", true);- await render(<template><LigthDarkImg @lightImg={{lightSrc}} /></template>);+ await render(<template><LightDarkImg @lightImg={{lightSrc}} /></template>);assert.ok(!exists("picture"), "there is no picture tag");assert.strictEqual(count("img"), 1, "there is an img tag");@@ -94,7 +94,7 @@ module("Integration | Component | light-dark-img", function (hooks) {this.session.set("darkModeAvailable", true);await render(<template>- <LigthDarkImg @lightImg={{lightSrc}} @darkImg={{darkSrc}} />+ <LightDarkImg @lightImg={{lightSrc}} @darkImg={{darkSrc}} /></template>);assert.strictEqual(count("picture"), 1, "there is a picture tag");@@ -116,7 +116,7 @@ module("Integration | Component | light-dark-img", function (hooks) {this.session.set("defaultColorSchemeIsDark", true);this.session.set("darkModeAvailable", false);- await render(<template><LigthDarkImg /></template>);+ await render(<template><LightDarkImg /></template>);assert.ok(!exists("picture"), "there is no picture tag");assert.ok(!exists("img"), "there is no img tag");@@ -127,7 +127,7 @@ module("Integration | Component | light-dark-img", function (hooks) {this.session.set("defaultColorSchemeIsDark", true);this.session.set("darkModeAvailable", false);- await render(<template><LigthDarkImg @lightImg={{lightSrc}} /></template>);+ await render(<template><LightDarkImg @lightImg={{lightSrc}} /></template>);assert.ok(!exists("picture"), "there is no picture tag");assert.strictEqual(count("img"), 1, "there is an img tag");@@ -144,7 +144,7 @@ module("Integration | Component | light-dark-img", function (hooks) {this.session.set("darkModeAvailable", false);await render(<template>- <LigthDarkImg @lightImg={{lightSrc}} @darkImg={{darkSrc}} />+ <LightDarkImg @lightImg={{lightSrc}} @darkImg={{darkSrc}} /></template>);assert.strictEqual(count("picture"), 1, "there is a picture tag");@@ -166,7 +166,7 @@ module("Integration | Component | light-dark-img", function (hooks) {this.session.set("defaultColorSchemeIsDark", true);this.session.set("darkModeAvailable", true);- await render(<template><LigthDarkImg /></template>);+ await render(<template><LightDarkImg /></template>);assert.ok(!exists("picture"), "there is no picture tag");assert.ok(!exists("img"), "there is no img tag");@@ -177,7 +177,7 @@ module("Integration | Component | light-dark-img", function (hooks) {this.session.set("defaultColorSchemeIsDark", true);this.session.set("darkModeAvailable", true);- await render(<template><LigthDarkImg @lightImg={{lightSrc}} /></template>);+ await render(<template><LightDarkImg @lightImg={{lightSrc}} /></template>);assert.ok(!exists("picture"), "there is no picture tag");assert.strictEqual(count("img"), 1, "there is an img tag");@@ -194,7 +194,7 @@ module("Integration | Component | light-dark-img", function (hooks) {this.session.set("darkModeAvailable", true);await render(<template>- <LigthDarkImg @lightImg={{lightSrc}} @darkImg={{darkSrc}} />+ <LightDarkImg @lightImg={{lightSrc}} @darkImg={{darkSrc}} /></template>);assert.strictEqual(count("picture"), 1, "there is a picture tag");diff --git a/plugins/chat/assets/javascripts/discourse/lib/fabricators.js b/plugins/chat/assets/javascripts/discourse/lib/fabricators.jsindex 84ec2b7cbd8..ed5e8a9006a 100644--- a/plugins/chat/assets/javascripts/discourse/lib/fabricators.js+++ b/plugins/chat/assets/javascripts/discourse/lib/fabricators.js@@ -80,7 +80,7 @@ export default class ChatFabricators {chatable,status: args.status || CHANNEL_STATUSES.open,slug:- chatable?.slug || chatable instanceof Category ? chatable.slugt : null,+ chatable?.slug || chatable instanceof Category ? chatable.slug : null,meta: Object.assign({ can_delete_self: true }, args.meta || {}),archive_failed: args.archive_failed ?? false,memberships_count: args.memberships_count ?? 0,diff --git a/plugins/chat/test/javascripts/unit/models/chat-message-test.js b/plugins/chat/test/javascripts/unit/models/chat-message-test.jsindex ecca21dce2d..5085d0af409 100644--- a/plugins/chat/test/javascripts/unit/models/chat-message-test.js+++ b/plugins/chat/test/javascripts/unit/models/chat-message-test.js@@ -4,7 +4,7 @@ import { module, test } from "qunit";import ChatFabricators from "discourse/plugins/chat/discourse/lib/fabricators";import ChatMessage from "discourse/plugins/chat/discourse/models/chat-message";-module("Discourse Chat | Unit | Models | chat-message", function (hooks) {+module("Discourse Chat | Unit | Models | chat-message", function (hooks) {setupTest(hooks);test(".persisted", function (assert) {