From aa6e1da8f3ebc1bcad93f11afb8a4c12f6acfb67 Mon Sep 17 00:00:00 2001 From: Anris Ceta <anris.ceta@mni.thm.de> Date: Fri, 22 Mar 2019 10:29:08 +0100 Subject: [PATCH] Fix refactor bug --- .../comment-create.component.html} | 0 .../comment-create.component.scss} | 0 .../comment-create.component.spec.ts | 25 +++++++++++++++++++ .../comment-create.component.ts} | 8 +++--- .../comments-creator-shared.component.spec.ts | 25 ------------------- 5 files changed, 29 insertions(+), 29 deletions(-) rename src/app/components/shared/{comments-creator-shared/comments-creator-shared.component.html => comment-create/comment-create.component.html} (100%) rename src/app/components/shared/{comments-creator-shared/comments-creator-shared.component.scss => comment-create/comment-create.component.scss} (100%) create mode 100644 src/app/components/shared/comment-create/comment-create.component.spec.ts rename src/app/components/shared/{comments-creator-shared/comments-creator-shared.component.ts => comment-create/comment-create.component.ts} (91%) delete mode 100644 src/app/components/shared/comments-creator-shared/comments-creator-shared.component.spec.ts 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 000000000..59d03aa08 --- /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 af11d7a3a..3ecc15492 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 8230e8933..000000000 --- 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(); - }); -}); */ -- GitLab