Skip to content

Commit

Permalink
Merge pull request #574 from sunbird-cb/parichay-error-tesing
Browse files Browse the repository at this point in the history
Parichay error tesing
  • Loading branch information
nitinraj-tarento authored Oct 3, 2022
2 parents 56925bc + e641748 commit ffb3edd
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -719,4 +719,4 @@ export class AppTocSinglePageComponent implements OnInit, OnChanges, OnDestroy {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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<SurveyComponent>;
let component: SurveyComponent
let fixture: ComponentFixture<SurveyComponent>

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()
})
})
28 changes: 14 additions & 14 deletions project/ws/viewer/src/lib/routes/survey/survey.component.spec.ts
Original file line number Diff line number Diff line change
@@ -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<SurveyComponent>;
let component: SurveyComponent
let fixture: ComponentFixture<SurveyComponent>

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

0 comments on commit ffb3edd

Please sign in to comment.