From c9b4ffe328ec283b2630406c788dab70b45c8505 Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Thu, 16 Jan 2020 10:20:47 +0100 Subject: [PATCH] merge with dev --- .../voting-comment.component.html | 7 ++++++ .../voting-comment.component.scss | 0 .../voting-comment.component.spec.ts | 25 +++++++++++++++++++ .../voting-comment.component.ts | 19 ++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 src/app/pages/voting/voting-comment/voting-comment.component.html create mode 100644 src/app/pages/voting/voting-comment/voting-comment.component.scss create mode 100644 src/app/pages/voting/voting-comment/voting-comment.component.spec.ts create mode 100644 src/app/pages/voting/voting-comment/voting-comment.component.ts diff --git a/src/app/pages/voting/voting-comment/voting-comment.component.html b/src/app/pages/voting/voting-comment/voting-comment.component.html new file mode 100644 index 00000000..3f237eb2 --- /dev/null +++ b/src/app/pages/voting/voting-comment/voting-comment.component.html @@ -0,0 +1,7 @@ +
+ {{comment.name}} , le + {{comment.date}} +

+ {{comment.text}} +

+
diff --git a/src/app/pages/voting/voting-comment/voting-comment.component.scss b/src/app/pages/voting/voting-comment/voting-comment.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/pages/voting/voting-comment/voting-comment.component.spec.ts b/src/app/pages/voting/voting-comment/voting-comment.component.spec.ts new file mode 100644 index 00000000..03acbaa3 --- /dev/null +++ b/src/app/pages/voting/voting-comment/voting-comment.component.spec.ts @@ -0,0 +1,25 @@ +import {async, ComponentFixture, TestBed} from '@angular/core/testing'; + +import {VotingCommentComponent} from './voting-comment.component'; + +describe('VotingCommentComponent', () => { + let component: VotingCommentComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [VotingCommentComponent] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(VotingCommentComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/pages/voting/voting-comment/voting-comment.component.ts b/src/app/pages/voting/voting-comment/voting-comment.component.ts new file mode 100644 index 00000000..7bc61462 --- /dev/null +++ b/src/app/pages/voting/voting-comment/voting-comment.component.ts @@ -0,0 +1,19 @@ +import {Component, Input, OnInit} from '@angular/core'; +import {mockComments} from "../../../config/mock-comments"; + +@Component({ + selector: 'framadate-voting-comment', + templateUrl: './voting-comment.component.html', + styleUrls: ['./voting-comment.component.scss'] +}) +export class VotingCommentComponent implements OnInit { + + @Input() private comment = mockComments[0]; + + constructor() { + } + + ngOnInit() { + } + +}