coreui-angular-ex
Version:
CoreUI Components Library for Angular
20 lines (16 loc) • 570 B
text/typescript
import { TestBed } from '@angular/core/testing';
import { SidebarService } from '../sidebar.service';
import { SidebarToggleDirective } from './sidebar-toggle.directive';
describe('SidebarToggleDirective', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
providers: [SidebarService]
})
.compileComponents();
});
it('should create an instance', () => {
const service = new SidebarService();
const directive = new SidebarToggleDirective(service);
expect(directive).toBeTruthy();
});
});