forked from tykayn/funky-framadate-front
merge with dev
This commit is contained in:
parent
79ef34e5af
commit
c9b4ffe328
@ -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>
|
@ -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();
|
||||||
|
});
|
||||||
|
});
|
@ -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() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user