test39.spec.js 424 B

12345678910
  1. import { LanguageService } from './../js/services/languageService';
  2. describe('LanguageService.getLang() ', function () {
  3. beforeEach(() => {
  4. localStorage.setItem('ivprog.lang', 'pt_br');
  5. });
  6. it("should return the value associated to the key ivprog.lang, inside localStorage", function () {
  7. expect(LanguageService.getLang()).toEqual('pt_br');
  8. });
  9. afterEach(() => localStorage.removeItem('ivprog.lang'));
  10. });