Skip to content

Instantly share code, notes, and snippets.

@jplew
Created March 7, 2018 19:15
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 jplew/66081e668e78c3e384c5d4dd72abba9f to your computer and use it in GitHub Desktop.
Save jplew/66081e668e78c3e384c5d4dd72abba9f to your computer and use it in GitHub Desktop.
game-message.component.spec.ts
import { async, ComponentFixture, TestBed } from '@angular/core/testing'
import { GameMessageComponent } from './game-message.component'
import { PlayerService } from '@app/services/player.service'
import { ControllerService } from '@app/services/controller.service'
describe('GameMessageComponent', () => {
let component: GameMessageComponent
let fixture: ComponentFixture<GameMessageComponent>
beforeEach(
async(() => {
TestBed.configureTestingModule({
declarations: [GameMessageComponent],
providers: [PlayerService, ControllerService],
}).compileComponents()
})
)
beforeEach(() => {
fixture = TestBed.createComponent(GameMessageComponent)
component = fixture.componentInstance
fixture.detectChanges()
})
it('should create', () => {
expect(component).toBeTruthy()
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment