Created
October 5, 2018 14:57
-
-
Save gjackson12/a2c8baa69fb25dc9fb9ab30af9a8097b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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