DEV: Silence "glimmer topic list" success message in tests (#30654)

This commit is contained in:
David Taylor 2025-01-08 22:37:37 +00:00 committed by GitHub
parent e5d6ca0451
commit 88a4a7f4f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,6 +11,7 @@ import Category from "discourse/models/category";
import PostActionType from "discourse/models/post-action-type";
import RestModel from "discourse/models/rest";
import TrustLevel from "discourse/models/trust-level";
import { isRailsTesting, isTesting } from "discourse-common/config/environment";
import deprecated from "discourse-common/lib/deprecated";
import { getOwnerWithFallback } from "discourse-common/lib/get-owner";
import { needsHbrTopicList } from "discourse-common/lib/raw-templates";
@ -125,7 +126,9 @@ export default class Site extends RestModel {
);
decision = false;
} else {
if (!isTesting() && !isRailsTesting()) {
console.log("✅ Using the new 'glimmer' topic list");
}
decision = true;
}
}