-
-
Save AlexLakatos/ceac501282a87af2644b2fa937c4ba19 to your computer and use it in GitHub Desktop.
languagesService.spec.ts
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
| describe('Service: LanguagesService', () => { | |
| let service; | |
| beforeEach(() => TestBed.configureTestingModule({ | |
| providers: [ LanguagesService ] | |
| })); | |
| beforeEach(inject([LanguagesService], s => { | |
| service = s; | |
| })); | |
| it('should return available languages', () => { | |
| let languages = service.get(); | |
| expect(languages).toContain('en'); | |
| expect(languages).toContain('es'); | |
| expect(languages).toContain('fr'); | |
| expect(languages.length).toEqual(3); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment