test39.spec.js 368 B

12345678
  1. import { LanguageService } from './../js/services/languageService';
  2. describe('LanguageService.getLang() ', function () {
  3. LanguageService.setLang('pt_br');
  4. it("should return the value passed as parameter to LanguageService.setLang()", function () {
  5. expect(LanguageService.getLang()).toEqual('pt_br');
  6. });
  7. afterEach(() => LanguageService.setLang('pt'));
  8. });