mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
15 lines
443 B
JavaScript
15 lines
443 B
JavaScript
import componentTest from 'helpers/component-test';
|
|
|
|
moduleForComponent('post-menu', {integration: true});
|
|
|
|
componentTest('render buttons', {
|
|
template: "{{post-menu post=post}}",
|
|
setup(store) {
|
|
const topic = store.createRecord('topic', {id: 123});
|
|
this.set('post', store.createRecord('post', {id: 1, post_number: 1, topic}));
|
|
},
|
|
test(assert) {
|
|
assert.ok(this.$('.post-menu-area').length, 'it renders a post menu');
|
|
}
|
|
});
|