From 35faecb06b4b921d12a62344976918e88cd73fca Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 6 Nov 2018 09:40:03 +0000 Subject: Restored width & height properties --- spec/javascripts/diffs/components/diff_content_spec.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'spec/javascripts/diffs/components/diff_content_spec.js') diff --git a/spec/javascripts/diffs/components/diff_content_spec.js b/spec/javascripts/diffs/components/diff_content_spec.js index a31e04d426b..36bd042f3c4 100644 --- a/spec/javascripts/diffs/components/diff_content_spec.js +++ b/spec/javascripts/diffs/components/diff_content_spec.js @@ -62,7 +62,13 @@ describe('DiffContent', () => { vm.diffFile.oldSha = 'ABC'; vm.diffFile.viewPath = ''; vm.diffFile.discussions = [{ ...discussionsMockData }]; - vm.$store.state.diffs.commentForms.push({ fileHash: vm.diffFile.fileHash, x: 10, y: 20 }); + vm.$store.state.diffs.commentForms.push({ + fileHash: vm.diffFile.fileHash, + x: 10, + y: 20, + width: 100, + height: 200, + }); vm.$nextTick(done); }); @@ -96,6 +102,8 @@ describe('DiffContent', () => { positionType: 'image', x: 10, y: 20, + width: 100, + height: 200, }, }); }); -- cgit v1.2.1