From f7e7f9a6a7a10f23add23f7291d16ae3b0f9c7f6 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Mon, 8 Aug 2022 18:50:39 +0200 Subject: [PATCH] DEV: Fix a function name typo (#17828) Co-authored-by: Osama Sayegh --- app/assets/javascripts/discourse/app/lib/notification-item.js | 2 +- .../javascripts/discourse/tests/helpers/qunit-helpers.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {