Commit 12039f0c4ec97000a055d0d8ac578656d52b3caf

Authored by Victor Costa
1 parent 98521917

Fix warnings in comment-paragraph

src/plugins/comment_paragraph/hotspot/comment-paragraph-from.component.spec.ts
... ... @@ -25,7 +25,7 @@ describe("Components", () => {
25 25 });
26 26  
27 27 it('set paragraph uuid when parent has it setted', () => {
28   - helper.component.parent = { paragraph_uuid: 'uuid' };
  28 + helper.component.parent = <any>{ paragraph_uuid: 'uuid' };
29 29 helper.detectChanges();
30 30 expect((<any>helper.component.comment).paragraph_uuid).toEqual('uuid');
31 31 });
... ...
src/plugins/comment_paragraph/side-comments/side-comments.component.spec.ts
... ... @@ -44,7 +44,8 @@ describe(&quot;Components&quot;, () =&gt; {
44 44 });
45 45  
46 46 it('set paragraph uuid in new comment object', () => {
47   - expect(helper.component.newComment['paragraph_uuid']).toEqual('uuid');
  47 + let comment = <any>helper.component.newComment;
  48 + expect(comment['paragraph_uuid']).toEqual('uuid');
48 49 });
49 50 });
50 51 });
... ...