-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathx-shell.component.spec.ts
More file actions
33 lines (28 loc) · 1010 Bytes
/
Copy pathx-shell.component.spec.ts
File metadata and controls
33 lines (28 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { provideZonelessChangeDetection } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { provideRouter } from '@angular/router';
import { ServiceWorkerModule, SwUpdate } from '@angular/service-worker';
import { XShellComponent } from './x-shell.component';
describe('XShellComponent', () => {
let component: XShellComponent;
let fixture: ComponentFixture<XShellComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
XShellComponent,
ServiceWorkerModule.register('ngsw-worker.js', { enabled: false }),
],
providers: [
provideZonelessChangeDetection(),
provideRouter([]),
{ provide: SwUpdate, useValue: {} },
],
}).compileComponents();
fixture = TestBed.createComponent(XShellComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});