File tree Expand file tree Collapse file tree 6 files changed +127
-0
lines changed
projects/coreui/angular/src/lib Expand file tree Collapse file tree 6 files changed +127
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
+
3
+ import { AppAsideComponent } from './app-aside.component' ;
4
+
5
+ describe ( 'AppAsideComponent' , ( ) => {
6
+ let component : AppAsideComponent ;
7
+ let fixture : ComponentFixture < AppAsideComponent > ;
8
+
9
+ beforeEach ( async ( ( ) => {
10
+ TestBed . configureTestingModule ( {
11
+ declarations : [ AppAsideComponent ]
12
+ } )
13
+ . compileComponents ( ) ;
14
+ } ) ) ;
15
+
16
+ beforeEach ( ( ) => {
17
+ fixture = TestBed . createComponent ( AppAsideComponent ) ;
18
+ component = fixture . componentInstance ;
19
+ fixture . detectChanges ( ) ;
20
+ } ) ;
21
+
22
+ it ( 'should create' , ( ) => {
23
+ expect ( component ) . toBeTruthy ( ) ;
24
+ } ) ;
25
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import { TestBed } from '@angular/core/testing' ;
2
+ import { RouterTestingModule } from '@angular/router/testing' ;
3
+
4
+ import { AppBreadcrumbService } from './app-breadcrumb.service' ;
5
+
6
+ describe ( 'AppBreadcrumbService' , ( ) => {
7
+ let service : AppBreadcrumbService ;
8
+
9
+ beforeEach ( ( ) => {
10
+ TestBed . configureTestingModule ( {
11
+ imports : [ RouterTestingModule . withRoutes ( [ ] ) ] ,
12
+ } ) ;
13
+ service = TestBed . inject ( AppBreadcrumbService ) ;
14
+ } ) ;
15
+
16
+ it ( 'should be created' , ( ) => {
17
+ expect ( service ) . toBeTruthy ( ) ;
18
+ } ) ;
19
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
+ import { RouterTestingModule } from '@angular/router/testing' ;
3
+
4
+ import { CuiBreadcrumbComponent } from './cui-breadcrumb.component' ;
5
+
6
+ describe ( 'CuiBreadcrumbComponent' , ( ) => {
7
+ let component : CuiBreadcrumbComponent ;
8
+ let fixture : ComponentFixture < CuiBreadcrumbComponent > ;
9
+
10
+ beforeEach ( async ( ( ) => {
11
+ TestBed . configureTestingModule ( {
12
+ imports : [ RouterTestingModule . withRoutes ( [ ] ) ] ,
13
+ declarations : [ CuiBreadcrumbComponent ]
14
+ } )
15
+ . compileComponents ( ) ;
16
+ } ) ) ;
17
+
18
+ beforeEach ( ( ) => {
19
+ fixture = TestBed . createComponent ( CuiBreadcrumbComponent ) ;
20
+ component = fixture . componentInstance ;
21
+ fixture . detectChanges ( ) ;
22
+ } ) ;
23
+
24
+ it ( 'should create' , ( ) => {
25
+ expect ( component ) . toBeTruthy ( ) ;
26
+ } ) ;
27
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
+
3
+ import { AppFooterComponent } from './app-footer.component' ;
4
+
5
+ describe ( 'AppAsideComponent' , ( ) => {
6
+ let component : AppFooterComponent ;
7
+ let fixture : ComponentFixture < AppFooterComponent > ;
8
+
9
+ beforeEach ( async ( ( ) => {
10
+ TestBed . configureTestingModule ( {
11
+ declarations : [ AppFooterComponent ]
12
+ } )
13
+ . compileComponents ( ) ;
14
+ } ) ) ;
15
+
16
+ beforeEach ( ( ) => {
17
+ fixture = TestBed . createComponent ( AppFooterComponent ) ;
18
+ component = fixture . componentInstance ;
19
+ fixture . detectChanges ( ) ;
20
+ } ) ;
21
+
22
+ it ( 'should create' , ( ) => {
23
+ expect ( component ) . toBeTruthy ( ) ;
24
+ } ) ;
25
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
+ import { RouterTestingModule } from '@angular/router/testing' ;
3
+
4
+ import { AppHeaderComponent } from './app-header.component' ;
5
+ import { AsideToggleDirective , SidebarToggleDirective } from '../shared/layout/layout.directive' ;
6
+
7
+ describe ( 'AppAsideComponent' , ( ) => {
8
+ let component : AppHeaderComponent ;
9
+ let fixture : ComponentFixture < AppHeaderComponent > ;
10
+
11
+ beforeEach ( async ( ( ) => {
12
+ TestBed . configureTestingModule ( {
13
+ imports : [ RouterTestingModule . withRoutes ( [ ] ) ] ,
14
+ declarations : [ AppHeaderComponent , SidebarToggleDirective , AsideToggleDirective ]
15
+ } )
16
+ . compileComponents ( ) ;
17
+ } ) ) ;
18
+
19
+ beforeEach ( ( ) => {
20
+ fixture = TestBed . createComponent ( AppHeaderComponent ) ;
21
+ component = fixture . componentInstance ;
22
+ fixture . detectChanges ( ) ;
23
+ } ) ;
24
+
25
+ it ( 'should create' , ( ) => {
26
+ expect ( component ) . toBeTruthy ( ) ;
27
+ } ) ;
28
+ } ) ;
Original file line number Diff line number Diff line change 1
1
import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
+ import { RouterTestingModule } from '@angular/router/testing' ;
3
+
2
4
import { AppSidebarComponent } from './app-sidebar.component' ;
3
5
4
6
describe ( 'AppSidebarComponent' , ( ) => {
@@ -7,6 +9,7 @@ describe('AppSidebarComponent', () => {
7
9
8
10
beforeEach ( async ( ( ) => {
9
11
TestBed . configureTestingModule ( {
12
+ imports : [ RouterTestingModule . withRoutes ( [ ] ) ] ,
10
13
declarations : [ AppSidebarComponent ] ,
11
14
} )
12
15
. compileComponents ( ) ;
You can’t perform that action at this time.
0 commit comments