mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
fix spec
This commit is contained in:
parent
ec7443b021
commit
a1c875986a
1 changed files with 9 additions and 21 deletions
|
@ -8,8 +8,8 @@ widgetTest("duplicate links", {
|
||||||
this.set('args', {
|
this.set('args', {
|
||||||
id: 2,
|
id: 2,
|
||||||
links: [
|
links: [
|
||||||
{ title: "Evil Trout Link", url: "http://eviltrout.com" },
|
{ title: "Evil Trout Link", url: "http://eviltrout.com", reflection: true },
|
||||||
{ title: "Evil Trout Link", url: "http://dupe.eviltrout.com" }
|
{ title: "Evil Trout Link", url: "http://dupe.eviltrout.com", reflection: true }
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -24,13 +24,13 @@ widgetTest("collapsed links", {
|
||||||
this.set('args', {
|
this.set('args', {
|
||||||
id: 1,
|
id: 1,
|
||||||
links: [
|
links: [
|
||||||
{ title: "Link 1", url: "http://eviltrout.com?1" },
|
{ title: "Link 1", url: "http://eviltrout.com?1", reflection: true },
|
||||||
{ title: "Link 2", url: "http://eviltrout.com?2" },
|
{ title: "Link 2", url: "http://eviltrout.com?2", reflection: true },
|
||||||
{ title: "Link 3", url: "http://eviltrout.com?3" },
|
{ title: "Link 3", url: "http://eviltrout.com?3", reflection: true },
|
||||||
{ title: "Link 4", url: "http://eviltrout.com?4" },
|
{ title: "Link 4", url: "http://eviltrout.com?4", reflection: true },
|
||||||
{ title: "Link 5", url: "http://eviltrout.com?5" },
|
{ title: "Link 5", url: "http://eviltrout.com?5", reflection: true },
|
||||||
{ title: "Link 6", url: "http://eviltrout.com?6" },
|
{ title: "Link 6", url: "http://eviltrout.com?6", reflection: true },
|
||||||
{ title: "Link 7", url: "http://eviltrout.com?7" },
|
{ title: "Link 7", url: "http://eviltrout.com?7", reflection: true },
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -42,15 +42,3 @@ widgetTest("collapsed links", {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// widgetTest("reply as new topic", {
|
|
||||||
// template: '{{mount-widget widget="post-links" args=args newTopicAction="newTopicAction"}}',
|
|
||||||
// setup() {
|
|
||||||
// this.set('args', { canReplyAsNewTopic: true });
|
|
||||||
// this.on('newTopicAction', () => this.newTopicTriggered = true);
|
|
||||||
// },
|
|
||||||
// test(assert) {
|
|
||||||
// click('a.reply-new');
|
|
||||||
// andThen(() => assert.ok(this.newTopicTriggered));
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
|
|
Loading…
Reference in a new issue