mirror of
https://github.com/discourse/discourse.git
synced 2025-01-16 06:52:41 +08:00
DEV: Silence "glimmer topic list" success message in tests (#30654)
This commit is contained in:
parent
e5d6ca0451
commit
88a4a7f4f0
|
@ -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 {
|
||||
console.log("✅ Using the new 'glimmer' topic list");
|
||||
if (!isTesting() && !isRailsTesting()) {
|
||||
console.log("✅ Using the new 'glimmer' topic list");
|
||||
}
|
||||
decision = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user