aboutsummaryrefslogtreecommitdiff
path: root/test/content/components/common/follow.test.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-07-29 13:25:47 +0900
committerGitHub <noreply@github.com>2018-07-29 13:25:47 +0900
commit85e9b9da3714c0fa2998b0fab8f2a01c49d84d5a (patch)
treeeeb6d1b4c489cc179520d852e577b7e7ece747af /test/content/components/common/follow.test.js
parentaf90ef59566210fa8715816d639ae1025f2aa2fb (diff)
parentb45ffea6a45de911710eb9868596987e27b5c707 (diff)
Merge pull request #432 from Mange/follow-details-summary
Allow following <summary> elements
Diffstat (limited to 'test/content/components/common/follow.test.js')
-rw-r--r--test/content/components/common/follow.test.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/content/components/common/follow.test.js b/test/content/components/common/follow.test.js
index 4fc11d0..90d6cf5 100644
--- a/test/content/components/common/follow.test.js
+++ b/test/content/components/common/follow.test.js
@@ -11,10 +11,15 @@ describe('FollowComponent', () => {
window,
{ width: window.innerWidth, height: window.innerHeight },
{ x: 0, y: 0 });
- expect(targets).to.have.lengthOf(3);
+ expect(targets).to.have.lengthOf(4);
let ids = Array.prototype.map.call(targets, (e) => e.id);
- expect(ids).to.include.members(['visible_a', 'editable_div_1', 'editable_div_2']);
+ expect(ids).to.include.members([
+ 'visible_a',
+ 'editable_div_1',
+ 'editable_div_2',
+ 'summary_1',
+ ]);
});
});
});