-
Notifications
You must be signed in to change notification settings - Fork 16
/
app-layout.component.spec.ts
44 lines (39 loc) · 1.5 KB
/
app-layout.component.spec.ts
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
34
35
36
37
38
39
40
41
42
43
44
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ContentModule } from '@alfresco/adf-content-services';
import { ProcessModule } from '@alfresco/adf-process-services';
import { CoreModule, TranslateLoaderService } from '@alfresco/adf-core';
import { AppLayoutComponent } from './app-layout.component';
import { AlfrescoApiServiceMock, AlfrescoApiService } from '@alfresco/adf-core';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
describe('AppLayoutComponent', () => {
let component: AppLayoutComponent;
let fixture: ComponentFixture<AppLayoutComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
BrowserAnimationsModule,
CoreModule.forRoot(),
ContentModule.forRoot(),
ProcessModule.forRoot(),
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateLoaderService }
})
],
declarations: [AppLayoutComponent],
providers: [
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }
]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(AppLayoutComponent);
component = fixture.componentInstance;
});
it('should create', () => {
expect(component).toBeTruthy();
});
});