Skip to content

Commit 3ec07c1

Browse files
committed
test(updated-demo): resolve test errors
1 parent dacd703 commit 3ec07c1

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

projects/apps/updated-demo/src/app/pages/grid/layout/layout.component.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import { provideLocationMocks } from '@angular/common/testing';
12
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
23
import { LayoutComponent } from '../../layout/layout.component';
4+
import { provideRouter } from '@angular/router';
35

46
describe('LayoutComponent', () => {
57
let component: LayoutComponent;
@@ -8,6 +10,10 @@ describe('LayoutComponent', () => {
810
beforeEach(waitForAsync(() => {
911
TestBed.configureTestingModule({
1012
imports: [],
13+
providers: [
14+
provideRouter([]),
15+
provideLocationMocks(),
16+
],
1117
}).compileComponents();
1218
}));
1319

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
2+
import { DirectionComponent } from './direction.component';
3+
4+
describe('DirectionComponent', () => {
5+
let component: DirectionComponent;
6+
let fixture: ComponentFixture<DirectionComponent>;
7+
8+
beforeEach(waitForAsync(() => {
9+
TestBed.configureTestingModule({
10+
imports: [],
11+
}).compileComponents();
12+
}));
13+
14+
beforeEach(() => {
15+
fixture = TestBed.createComponent(DirectionComponent);
16+
component = fixture.componentInstance;
17+
fixture.detectChanges();
18+
});
19+
20+
it('should create', () => {
21+
expect(component).toBeTruthy();
22+
});
23+
});
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
2+
import { RowFillWrapComponent } from './row-fill-wrap.component';
3+
4+
describe('RowFillWrapComponent', () => {
5+
let component: RowFillWrapComponent;
6+
let fixture: ComponentFixture<RowFillWrapComponent>;
7+
8+
beforeEach(waitForAsync(() => {
9+
TestBed.configureTestingModule({
10+
imports: [],
11+
}).compileComponents();
12+
}));
13+
14+
beforeEach(() => {
15+
fixture = TestBed.createComponent(RowFillWrapComponent);
16+
component = fixture.componentInstance;
17+
fixture.detectChanges();
18+
});
19+
20+
it('should create', () => {
21+
expect(component).toBeTruthy();
22+
});
23+
});

0 commit comments

Comments
 (0)