ng-ytl-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
27 lines (21 loc) • 854 B
text/typescript
import { async, TestBed } from '@angular/core/testing';
import { NgZorroAntdModule, NzRootConfig, NZ_ROOT_CONFIG } from './ng-zorro-antd.module';
describe('NgZorroAntdModule with Angular integration', () => {
it('should not provide root config with empty forRoot', async(() => {
TestBed.configureTestingModule({
imports: [
NgZorroAntdModule.forRoot(),
],
}).compileComponents();
expect(TestBed.get(NZ_ROOT_CONFIG)).not.toBeDefined();
}));
it('should provide root config with params in forRoot', async(() => {
const options: NzRootConfig = { extraFontName: '', extraFontUrl: '' };
TestBed.configureTestingModule({
imports: [
NgZorroAntdModule.forRoot(options),
],
}).compileComponents();
expect(TestBed.get(NZ_ROOT_CONFIG)).toBeDefined();
}));
});