mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Import MessageBus from message-bus-client instead of globals
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
import MessageBus from "message-bus-client";
|
||||
|
||||
acceptance("Topic Discovery", {
|
||||
settings: {
|
||||
show_pinned_excerpt_desktop: true
|
||||
@@ -85,7 +87,7 @@ QUnit.test("Live update unread state", async assert => {
|
||||
);
|
||||
|
||||
// Mimic a messagebus message
|
||||
window.MessageBus.callbacks.filterBy("channel", "/latest").map(c =>
|
||||
MessageBus.callbacks.filterBy("channel", "/latest").map(c =>
|
||||
c.func({
|
||||
message_type: "read",
|
||||
topic_id: 11995,
|
||||
|
||||
Reference in New Issue
Block a user