discourse/plugins/chat/test/javascripts/helpers/mock-presence-channel.js
Roman Rizzi 0a5f548635
DEV: Move discourse-chat to the core repo. (#18776)
As part of this move, we are also renaming `discourse-chat` to `chat`.
2022-11-02 10:41:30 -03:00

16 lines
283 B
JavaScript

import EmberObject from "@ember/object";
export default class MockPresenceChannel extends EmberObject {
users = [];
name = null;
subscribed = false;
async unsubscribe() {
this.set("subscribed", false);
}
async subscribe() {
this.set("subscribed", true);
}
}