diff --git a/src/app/components/shared/comments-creator-shared/comments-creator-shared.component.html b/src/app/components/shared/comment-create/comment-create.component.html similarity index 100% rename from src/app/components/shared/comments-creator-shared/comments-creator-shared.component.html rename to src/app/components/shared/comment-create/comment-create.component.html diff --git a/src/app/components/shared/comments-creator-shared/comments-creator-shared.component.scss b/src/app/components/shared/comment-create/comment-create.component.scss similarity index 100% rename from src/app/components/shared/comments-creator-shared/comments-creator-shared.component.scss rename to src/app/components/shared/comment-create/comment-create.component.scss diff --git a/src/app/components/shared/comment-create/comment-create.component.spec.ts b/src/app/components/shared/comment-create/comment-create.component.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..59d03aa08d476dfe0cd69afa4ffa53e70aa59ac1 --- /dev/null +++ b/src/app/components/shared/comment-create/comment-create.component.spec.ts @@ -0,0 +1,25 @@ +/* import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { CommentCreateComponent } from './comment-create.component'; + +describe('CommentCreateComponent', () => { + let component: CommentCreateComponent; + let fixture: ComponentFixture<CommentCreateComponent>; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ CommentCreateComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(CommentCreateComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); */ diff --git a/src/app/components/shared/comments-creator-shared/comments-creator-shared.component.ts b/src/app/components/shared/comment-create/comment-create.component.ts similarity index 91% rename from src/app/components/shared/comments-creator-shared/comments-creator-shared.component.ts rename to src/app/components/shared/comment-create/comment-create.component.ts index af11d7a3a4b131b3929643a303b7167e44de302f..3ecc15492480c1057bf6afde3c28d64bfd744c1c 100644 --- a/src/app/components/shared/comments-creator-shared/comments-creator-shared.component.ts +++ b/src/app/components/shared/comment-create/comment-create.component.ts @@ -10,11 +10,11 @@ import { User } from '../../../models/user'; import { CommentListComponent } from '../comment-list/comment-list.component'; @Component({ - selector: 'app-comments-creator-shared', - templateUrl: './comments-creator-shared.component.html', - styleUrls: ['./comments-creator-shared.component.scss'] + selector: 'app-comment-create', + templateUrl: './comment-create.component.html', + styleUrls: ['./comment-create.component.scss'] }) -export class CommentsCreatorSharedComponent implements OnInit { +export class CommentCreateComponent implements OnInit { @ViewChild(CommentListComponent) child: CommentListComponent; roomId: string; diff --git a/src/app/components/shared/comments-creator-shared/comments-creator-shared.component.spec.ts b/src/app/components/shared/comments-creator-shared/comments-creator-shared.component.spec.ts deleted file mode 100644 index 8230e89330f36bd9beedda17782b297a2c80cd8b..0000000000000000000000000000000000000000 --- a/src/app/components/shared/comments-creator-shared/comments-creator-shared.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { CommentsCreatorSharedComponent } from './comments-creator-shared.component'; - -describe('CommentsCreatorSharedComponent', () => { - let component: CommentsCreatorSharedComponent; - let fixture: ComponentFixture<CommentsCreatorSharedComponent>; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ CommentsCreatorSharedComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(CommentsCreatorSharedComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); */