Skip to content

Instantly share code, notes, and snippets.

@tb
Last active November 7, 2017 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tb/f9bf66b205d2b02a42f1fd4302830ef6 to your computer and use it in GitHub Desktop.
Save tb/f9bf66b205d2b02a42f1fd4302830ef6 to your computer and use it in GitHub Desktop.
// ...
describe('BannerComponent (inline template)', () => {
let comp: BannerComponent;
let fixture: ComponentFixture<BannerComponent>;
setupTestBed({
declarations: [ BannerComponent ], // declare the test component
});
beforeEach(() => {
fixture = TestBed.createComponent(BannerComponent);
comp = fixture.componentInstance; // BannerComponent test instance
// ...
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment