From 2fb8f0adb1ece663612bf94206c7ba5a4844943b Mon Sep 17 00:00:00 2001 From: nitin raj Date: Mon, 3 Oct 2022 13:18:34 +0530 Subject: [PATCH 1/3] lint error fixed --- .../survey/survey.component.spec.ts | 16 +++++++-------- .../routes/survey/survey.component.spec.ts | 20 +++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/project/ws/viewer/src/lib/route-view-container/survey/survey.component.spec.ts b/project/ws/viewer/src/lib/route-view-container/survey/survey.component.spec.ts index bc37b7ac2..0849251ba 100644 --- a/project/ws/viewer/src/lib/route-view-container/survey/survey.component.spec.ts +++ b/project/ws/viewer/src/lib/route-view-container/survey/survey.component.spec.ts @@ -1,25 +1,25 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { async, ComponentFixture, TestBed } from '@angular/core/testing' -import { SurveyComponent } from './survey.component'; +import { SurveyComponent } from './survey.component' describe('SurveyComponent', () => { let component: SurveyComponent; - let fixture: ComponentFixture; + let fixture: ComponentFixture beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ SurveyComponent ] }) - .compileComponents(); + .compileComponents() })); beforeEach(() => { - fixture = TestBed.createComponent(SurveyComponent); - component = fixture.componentInstance; - fixture.detectChanges(); + fixture = TestBed.createComponent(SurveyComponent) + component = fixture.componentInstance + fixture.detectChanges() }); it('should create', () => { - expect(component).toBeTruthy(); + expect(component).toBeTruthy() }); }); diff --git a/project/ws/viewer/src/lib/routes/survey/survey.component.spec.ts b/project/ws/viewer/src/lib/routes/survey/survey.component.spec.ts index bc37b7ac2..8c2a37124 100644 --- a/project/ws/viewer/src/lib/routes/survey/survey.component.spec.ts +++ b/project/ws/viewer/src/lib/routes/survey/survey.component.spec.ts @@ -1,25 +1,25 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { async, ComponentFixture, TestBed } from '@angular/core/testing' -import { SurveyComponent } from './survey.component'; +import { SurveyComponent } from './survey.component' describe('SurveyComponent', () => { - let component: SurveyComponent; - let fixture: ComponentFixture; + let component: SurveyComponent + let fixture: ComponentFixture beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ SurveyComponent ] + declarations:[ SurveyComponent ] }) - .compileComponents(); + .compileComponents() })); beforeEach(() => { - fixture = TestBed.createComponent(SurveyComponent); - component = fixture.componentInstance; - fixture.detectChanges(); + fixture = TestBed.createComponent(SurveyComponent) + component = fixture.componentInstance + fixture.detectChanges() }); it('should create', () => { - expect(component).toBeTruthy(); + expect(component).toBeTruthy() }); }); From 49626271fdc38f268cb058960e7b40625fa2f24a Mon Sep 17 00:00:00 2001 From: nitin raj Date: Mon, 3 Oct 2022 13:33:23 +0530 Subject: [PATCH 2/3] lint fixes --- .../app-toc-single-page.component.ts | 2 +- .../survey/survey.component.spec.ts | 12 ++++++------ .../src/lib/routes/survey/survey.component.spec.ts | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/project/ws/app/src/lib/routes/app-toc/components/app-toc-single-page/app-toc-single-page.component.ts b/project/ws/app/src/lib/routes/app-toc/components/app-toc-single-page/app-toc-single-page.component.ts index 05f578e0d..8cbe24670 100755 --- a/project/ws/app/src/lib/routes/app-toc/components/app-toc-single-page/app-toc-single-page.component.ts +++ b/project/ws/app/src/lib/routes/app-toc/components/app-toc-single-page/app-toc-single-page.component.ts @@ -719,4 +719,4 @@ export class AppTocSinglePageComponent implements OnInit, OnChanges, OnDestroy { } } } -} \ No newline at end of file +} diff --git a/project/ws/viewer/src/lib/route-view-container/survey/survey.component.spec.ts b/project/ws/viewer/src/lib/route-view-container/survey/survey.component.spec.ts index 0849251ba..ea73efac8 100644 --- a/project/ws/viewer/src/lib/route-view-container/survey/survey.component.spec.ts +++ b/project/ws/viewer/src/lib/route-view-container/survey/survey.component.spec.ts @@ -3,23 +3,23 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing' import { SurveyComponent } from './survey.component' describe('SurveyComponent', () => { - let component: SurveyComponent; + let component: SurveyComponent let fixture: ComponentFixture beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ SurveyComponent ] + declarations: [SurveyComponent], }) .compileComponents() - })); + })) beforeEach(() => { fixture = TestBed.createComponent(SurveyComponent) component = fixture.componentInstance fixture.detectChanges() - }); + }) it('should create', () => { expect(component).toBeTruthy() - }); -}); + }) +}) diff --git a/project/ws/viewer/src/lib/routes/survey/survey.component.spec.ts b/project/ws/viewer/src/lib/routes/survey/survey.component.spec.ts index 8c2a37124..ea73efac8 100644 --- a/project/ws/viewer/src/lib/routes/survey/survey.component.spec.ts +++ b/project/ws/viewer/src/lib/routes/survey/survey.component.spec.ts @@ -8,18 +8,18 @@ describe('SurveyComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ - declarations:[ SurveyComponent ] + declarations: [SurveyComponent], }) .compileComponents() - })); + })) beforeEach(() => { fixture = TestBed.createComponent(SurveyComponent) component = fixture.componentInstance fixture.detectChanges() - }); + }) it('should create', () => { expect(component).toBeTruthy() - }); -}); + }) +}) From e6417483b8fbf0160c014f381605624a0a76f3dd Mon Sep 17 00:00:00 2001 From: nitin raj Date: Mon, 3 Oct 2022 13:44:00 +0530 Subject: [PATCH 3/3] error fixed --- .../components/user-profile/user-profile.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/ws/app/src/lib/routes/user-profile/components/user-profile/user-profile.component.ts b/project/ws/app/src/lib/routes/user-profile/components/user-profile/user-profile.component.ts index 2b3328c6a..b996da409 100755 --- a/project/ws/app/src/lib/routes/user-profile/components/user-profile/user-profile.component.ts +++ b/project/ws/app/src/lib/routes/user-profile/components/user-profile/user-profile.component.ts @@ -1268,7 +1268,7 @@ export class UserProfileComponent implements OnInit, OnDestroy { } }, (err: any) => { - console.log('err -----', err) + // console.log('err -----', err) const errMsg = _.get(err, 'error.params.errmsg') if (errMsg) { this.openSnackbar(errMsg)