From a1c875986a833c2f4063145a539c39217610f8c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 8 Jun 2016 11:48:26 +0200 Subject: [PATCH] fix spec --- .../widgets/post-links-test.js.es6 | 30 ++++++------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/test/javascripts/widgets/post-links-test.js.es6 b/test/javascripts/widgets/post-links-test.js.es6 index 289f947e8..3efc3f2b0 100644 --- a/test/javascripts/widgets/post-links-test.js.es6 +++ b/test/javascripts/widgets/post-links-test.js.es6 @@ -8,8 +8,8 @@ widgetTest("duplicate links", { this.set('args', { id: 2, links: [ - { title: "Evil Trout Link", url: "http://eviltrout.com" }, - { title: "Evil Trout Link", url: "http://dupe.eviltrout.com" } + { title: "Evil Trout Link", url: "http://eviltrout.com", reflection: true }, + { title: "Evil Trout Link", url: "http://dupe.eviltrout.com", reflection: true } ] }); }, @@ -24,13 +24,13 @@ widgetTest("collapsed links", { this.set('args', { id: 1, links: [ - { title: "Link 1", url: "http://eviltrout.com?1" }, - { title: "Link 2", url: "http://eviltrout.com?2" }, - { title: "Link 3", url: "http://eviltrout.com?3" }, - { title: "Link 4", url: "http://eviltrout.com?4" }, - { title: "Link 5", url: "http://eviltrout.com?5" }, - { title: "Link 6", url: "http://eviltrout.com?6" }, - { title: "Link 7", url: "http://eviltrout.com?7" }, + { title: "Link 1", url: "http://eviltrout.com?1", reflection: true }, + { title: "Link 2", url: "http://eviltrout.com?2", reflection: true }, + { title: "Link 3", url: "http://eviltrout.com?3", reflection: true }, + { title: "Link 4", url: "http://eviltrout.com?4", reflection: true }, + { title: "Link 5", url: "http://eviltrout.com?5", reflection: true }, + { title: "Link 6", url: "http://eviltrout.com?6", reflection: true }, + { 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)); -// } -// });