From 12039f0c4ec97000a055d0d8ac578656d52b3caf Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 9 May 2016 17:26:59 -0300 Subject: [PATCH] Fix warnings in comment-paragraph --- src/plugins/comment_paragraph/hotspot/comment-paragraph-from.component.spec.ts | 2 +- src/plugins/comment_paragraph/side-comments/side-comments.component.spec.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/comment_paragraph/hotspot/comment-paragraph-from.component.spec.ts b/src/plugins/comment_paragraph/hotspot/comment-paragraph-from.component.spec.ts index 275ae48..f17bca8 100644 --- a/src/plugins/comment_paragraph/hotspot/comment-paragraph-from.component.spec.ts +++ b/src/plugins/comment_paragraph/hotspot/comment-paragraph-from.component.spec.ts @@ -25,7 +25,7 @@ describe("Components", () => { }); it('set paragraph uuid when parent has it setted', () => { - helper.component.parent = { paragraph_uuid: 'uuid' }; + helper.component.parent = { paragraph_uuid: 'uuid' }; helper.detectChanges(); expect((helper.component.comment).paragraph_uuid).toEqual('uuid'); }); diff --git a/src/plugins/comment_paragraph/side-comments/side-comments.component.spec.ts b/src/plugins/comment_paragraph/side-comments/side-comments.component.spec.ts index 955e19c..34eed73 100644 --- a/src/plugins/comment_paragraph/side-comments/side-comments.component.spec.ts +++ b/src/plugins/comment_paragraph/side-comments/side-comments.component.spec.ts @@ -44,7 +44,8 @@ describe("Components", () => { }); it('set paragraph uuid in new comment object', () => { - expect(helper.component.newComment['paragraph_uuid']).toEqual('uuid'); + let comment = helper.component.newComment; + expect(comment['paragraph_uuid']).toEqual('uuid'); }); }); }); -- libgit2 0.21.2