forked from sunbird-cb/sunbird-cb-adminportal
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from KB-iGOT/issue-7379-fix
Issue 7379 fix
- Loading branch information
Showing
20 changed files
with
433 additions
and
2,106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
...s/app/src/lib/head/ui-admin-table/discussion-list/discussion-post-popup.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
project/ws/app/src/lib/routes/home/resolvers/approvedrequests-resolver.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
import { HttpClient } from '@angular/common/http' | ||
import { ApprovedRequestsResolve } from './approvedrequests-resolver.service' | ||
|
||
|
||
describe('ApprovedRequestsResolve', () => { | ||
let component: ApprovedRequestsResolve | ||
|
||
const http: Partial<HttpClient> = {} | ||
|
||
beforeAll(() => { | ||
component = new ApprovedRequestsResolve( | ||
http as HttpClient | ||
) | ||
}) | ||
|
||
beforeEach(() => { | ||
jest.clearAllMocks() | ||
jest.resetAllMocks() | ||
}) | ||
|
||
it('should create a instance of component', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
24 changes: 24 additions & 0 deletions
24
project/ws/app/src/lib/routes/home/resolvers/config-resolver.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
import { ConfigurationsService } from '@sunbird-cb/utils' | ||
import { ConfigResolveService } from './config-resolver.service' | ||
|
||
describe('ConfigResolveService', () => { | ||
let component: ConfigResolveService | ||
|
||
const confService: Partial<ConfigurationsService> = {} | ||
|
||
beforeAll(() => { | ||
component = new ConfigResolveService( | ||
confService as ConfigurationsService | ||
) | ||
}) | ||
|
||
beforeEach(() => { | ||
jest.clearAllMocks() | ||
jest.resetAllMocks() | ||
}) | ||
|
||
it('should create a instance of component', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
23 changes: 23 additions & 0 deletions
23
project/ws/app/src/lib/routes/home/resolvers/init-resolve.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { InitResolver } from "./init-resolve.service" | ||
|
||
|
||
describe('InitResolver', () => { | ||
let component: InitResolver | ||
|
||
|
||
|
||
beforeAll(() => { | ||
component = new InitResolver( | ||
|
||
) | ||
}) | ||
|
||
beforeEach(() => { | ||
jest.clearAllMocks() | ||
jest.resetAllMocks() | ||
}) | ||
|
||
it('should create a instance of component', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
24 changes: 24 additions & 0 deletions
24
project/ws/app/src/lib/routes/home/resolvers/positionlist-resolver.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
import { HttpClient } from '@angular/common/http' | ||
import { ApprovedlistResolve } from './positionlist-resolver.service' | ||
|
||
describe('ApprovedlistResolve', () => { | ||
let component: ApprovedlistResolve | ||
|
||
const http: Partial<HttpClient> = {} | ||
|
||
beforeAll(() => { | ||
component = new ApprovedlistResolve( | ||
http as HttpClient | ||
) | ||
}) | ||
|
||
beforeEach(() => { | ||
jest.clearAllMocks() | ||
jest.resetAllMocks() | ||
}) | ||
|
||
it('should create a instance of component', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
25 changes: 25 additions & 0 deletions
25
project/ws/app/src/lib/routes/home/resolvers/rejectedrequests-reoslver.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
|
||
import { HttpClient } from '@angular/common/http' | ||
import { RejectedRequestsResolve } from './rejectedrequests-reoslver.service' | ||
|
||
describe('RejectedRequestsResolve', () => { | ||
let component: RejectedRequestsResolve | ||
|
||
const http: Partial<HttpClient> = {} | ||
|
||
beforeAll(() => { | ||
component = new RejectedRequestsResolve( | ||
http as HttpClient | ||
) | ||
}) | ||
|
||
beforeEach(() => { | ||
jest.clearAllMocks() | ||
jest.resetAllMocks() | ||
}) | ||
|
||
it('should create a instance of component', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
26 changes: 26 additions & 0 deletions
26
project/ws/app/src/lib/routes/home/resolvers/requests-resolver.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
|
||
import { HttpClient } from '@angular/common/http' | ||
import { RequestsResolve } from './requests-resolver.service' | ||
|
||
|
||
describe('RequestsResolve', () => { | ||
let component: RequestsResolve | ||
|
||
const http: Partial<HttpClient> = {} | ||
|
||
beforeAll(() => { | ||
component = new RequestsResolve( | ||
http as HttpClient | ||
) | ||
}) | ||
|
||
beforeEach(() => { | ||
jest.clearAllMocks() | ||
jest.resetAllMocks() | ||
}) | ||
|
||
it('should create a instance of component', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
23 changes: 23 additions & 0 deletions
23
project/ws/app/src/lib/routes/home/resolvers/roles-resolver.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { RolesService } from '../services/roles.service' | ||
import { RolesResolver } from './roles-resolver.service' | ||
|
||
describe('RolesResolver', () => { | ||
let component: RolesResolver | ||
|
||
const rolesService: Partial<RolesService> = {} | ||
|
||
beforeAll(() => { | ||
component = new RolesResolver( | ||
rolesService as RolesService | ||
) | ||
}) | ||
|
||
beforeEach(() => { | ||
jest.clearAllMocks() | ||
jest.resetAllMocks() | ||
}) | ||
|
||
it('should create a instance of component', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
project/ws/app/src/lib/routes/home/routes/general-reports/general-reports.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
import { MatDialog } from '@angular/material/dialog' | ||
import { ConfigurationsService } from '@sunbird-cb/utils' | ||
import { MatSnackBar } from '@angular/material/snack-bar' | ||
import { DatePipe } from '@angular/common' | ||
import { GeneralReportsService } from './general-reports.service' | ||
import { GeneralReportsComponent } from './general-reports.component' | ||
|
||
describe('GeneralReportsComponent', () => { | ||
let component: GeneralReportsComponent | ||
|
||
const dialog: Partial<MatDialog> = {} | ||
const configSvc: Partial<ConfigurationsService> = {} | ||
const generalReportsService: Partial<GeneralReportsService> = {} | ||
const datePipe: Partial<DatePipe> = {} | ||
const snackBar: Partial<MatSnackBar> = {} | ||
|
||
beforeAll(() => { | ||
component = new GeneralReportsComponent( | ||
dialog as MatDialog, | ||
configSvc as ConfigurationsService, | ||
generalReportsService as GeneralReportsService, | ||
datePipe as DatePipe, | ||
snackBar as MatSnackBar | ||
) | ||
}) | ||
|
||
beforeEach(() => { | ||
jest.clearAllMocks() | ||
jest.resetAllMocks() | ||
}) | ||
|
||
it('should create a instance of component', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.