Skip to content

Instantly share code, notes, and snippets.

@gjackson12
Created October 5, 2018 14:57
Show Gist options
  • Select an option

  • Save gjackson12/a2c8baa69fb25dc9fb9ab30af9a8097b to your computer and use it in GitHub Desktop.

Select an option

Save gjackson12/a2c8baa69fb25dc9fb9ab30af9a8097b to your computer and use it in GitHub Desktop.
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { MaterialModule } from './material.module';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
MaterialModule
],
declarations: [
AppComponent
],
}).compileComponents();
}));
it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
});
it(`should have as title 'Angular-Project-Skeleton'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('Insight Studio Foundry - Angular Project Skeleton');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment