Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix a function name typo (#17828)

Jarek Radoszf7e7f9a6a7a1
diff --git a/app/assets/javascripts/discourse/app/lib/notification-item.js b/app/assets/javascripts/discourse/app/lib/notification-item.js
index 5ffeb4af9f2..f36399bc6d5 100644
--- a/app/assets/javascripts/discourse/app/lib/notification-item.js
+++ b/app/assets/javascripts/discourse/app/lib/notification-item.js
@@ -34,7 +34,7 @@ export function registerNotificationTypeRenderer(notificationType, func) {
_customClassForType[notificationType] = func(NotificationItemBase);
}
-export function resetRenderDirectorForNotifictaionTypes() {
+export function resetNotificationTypeRenderers() {
_customClassForType = {};
}
diff --git a/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js b/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js
index 5d16648c68d..965f16710ba 100644
--- a/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js
+++ b/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js
@@ -72,7 +72,7 @@ import {
import { clearTagsHtmlCallbacks } from "discourse/lib/render-tags";
import { clearToolbarCallbacks } from "discourse/components/d-editor";
import { resetSidebarSection } from "discourse/lib/sidebar/custom-sections";
-import { resetRenderDirectorForNotifictaionTypes } from "discourse/lib/notification-item";
+import { resetNotificationTypeRenderers } from "discourse/lib/notification-item";
export function currentUser() {
return User.create(sessionFixtures["/session/current.json"].current_user);
@@ -201,7 +201,7 @@ export function testCleanup(container, app) {
clearTagsHtmlCallbacks();
clearToolbarCallbacks();
resetSidebarSection();
- resetRenderDirectorForNotifictaionTypes();
+ resetNotificationTypeRenderers();
}
export function discourseModule(name, options) {