26 lines
833 B
Plaintext
Executable file
26 lines
833 B
Plaintext
Executable file
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
|
|
import { <%= classify(name) %><%= classify(type) %> } from './<%= dasherize(name) %><%= type ? '.' + dasherize(type): '' %>';
|
|
|
|
describe('<%= classify(name) %><%= classify(type) %>', () => {
|
|
let component: <%= classify(name) %><%= classify(type) %>;
|
|
let fixture: ComponentFixture<<%= classify(name) %><%= classify(type) %>>;
|
|
|
|
beforeEach(async () => {
|
|
await TestBed.configureTestingModule({
|
|
declarations: [ <%= classify(name) %><%= classify(type) %> ]
|
|
})
|
|
.compileComponents();
|
|
});
|
|
|
|
beforeEach(() => {
|
|
fixture = TestBed.createComponent(<%= classify(name) %><%= classify(type) %>);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|