merge with dev

This commit is contained in:
Baptiste Lemoine 2020-01-16 10:20:47 +01:00
parent 79ef34e5af
commit c9b4ffe328
4 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<div class="comment">
<span class="cname">{{comment.name}} </span>, le
<span class="date padding-btm-x1">{{comment.date}}</span>
<p class="text">
{{comment.text}}
</p>
</div>

View File

@ -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<VotingCommentComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [VotingCommentComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(VotingCommentComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -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() {
}
}