Commit 12039f0c4ec97000a055d0d8ac578656d52b3caf
1 parent
98521917
Exists in
master
and in
26 other branches
Fix warnings in comment-paragraph
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
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("Components", () => { |
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 | }); | ... | ... |