Skip to content

Commit

Permalink
fix(schematics): update component spec (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartington authored and imhoffd committed Feb 26, 2019
1 parent d598282 commit f19e6d8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { <%= classify(name) %>Page } from './<%= dasherize(name) %>.page';
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';

describe('<%= classify(name) %>Page', () => {
let component: <%= classify(name) %>Page;
let fixture: ComponentFixture<<%= classify(name) %>Page>;
describe('<%= classify(name) %>Component', () => {
let component: <%= classify(name) %>Component;
let fixture: ComponentFixture<<%= classify(name) %>Component>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ <%= classify(name) %>Page ],
declarations: [ <%= classify(name) %>Component ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(<%= classify(name) %>Page);
fixture = TestBed.createComponent(<%= classify(name) %>Component);
component = fixture.componentInstance;
fixture.detectChanges();
});
Expand Down

0 comments on commit f19e6d8

Please sign in to comment.