mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 19:54:14 +08:00
DEV: Move discourse-chat
to the core repo. (#18776)
As part of this move, we are also renaming `discourse-chat` to `chat`.
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
import componentTest, {
|
||||
setupRenderingTest,
|
||||
} from "discourse/tests/helpers/component-test";
|
||||
import { exists } from "discourse/tests/helpers/qunit-helpers";
|
||||
import hbs from "htmlbars-inline-precompile";
|
||||
import { module } from "qunit";
|
||||
|
||||
module(
|
||||
"Discourse Chat | Component | chat-composer-inline-buttons",
|
||||
function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
componentTest("buttons", {
|
||||
template: hbs`{{chat-composer-inline-buttons buttons=buttons}}`,
|
||||
|
||||
async beforeEach() {
|
||||
this.set("buttons", [{ id: "foo", icon: "times", action: () => {} }]);
|
||||
},
|
||||
|
||||
async test(assert) {
|
||||
assert.ok(exists(".chat-composer-inline-button.foo"));
|
||||
assert.ok(exists(".chat-composer-inline-button.foo .d-icon-times"));
|
||||
},
|
||||
});
|
||||
}
|
||||
);
|
Reference in New Issue
Block a user