DEV: Import MessageBus from message-bus-client instead of globals

This commit is contained in:
Robin Ward
2020-05-27 15:19:59 -04:00
parent 0f71d38d3a
commit 9dddbcc00d
9 changed files with 21 additions and 12 deletions

View File

@@ -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,