Skip to content

Instantly share code, notes, and snippets.

@FunnyGhost
Created September 12, 2019 12:25
Show Gist options
  • Select an option

  • Save FunnyGhost/24ccdc81daced15f28a355c44a6cb096 to your computer and use it in GitHub Desktop.

Select an option

Save FunnyGhost/24ccdc81daced15f28a355c44a6cb096 to your computer and use it in GitHub Desktop.
favorite movies spec init
const moviesToUse = [
{ title: 'Interstellar' } as Movie,
{ title: 'The Green Book' } as Movie,
{ title: 'Dark Knight' } as Movie
];
describe('FavoriteMoviesService', () => {
let serviceUnderTest: FavoriteMoviesService;
beforeEach(() => {
TestBed.configureTestingModule({
providers: [FavoriteMoviesService]
});
serviceUnderTest = TestBed.get(FavoriteMoviesService);
});
it('should be created', () => {
expect(serviceUnderTest).toBeTruthy();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment