Login dialog shows error for Safari with Private Window mode (#1172)

* #958 new StorageService service

abstraction around ‘Storage’ to allow switching to in-memory store
whenever ‘localStorage’ is not available (i.e. private/incognito modes,
etc.)

* fix unit tests

* update unit tests

- disable incorrect auth tests (core)
- simplify widget visibility tests (activiti-form)

* fix unit tests
This commit is contained in:
Denys Vuika
2016-11-30 11:32:16 +00:00
committed by Eugenio Romano
parent 94dad585b1
commit da70a72bba
33 changed files with 494 additions and 414 deletions

View File

@@ -18,12 +18,12 @@
import { ReflectiveInjector } from '@angular/core';
import { BpmUserService } from '../services/bpm-user.service';
// import { BpmUserModel } from '../models/bpm-user.model';
import { AlfrescoAuthenticationService, AlfrescoApiService, AlfrescoSettingsService } from 'ng2-alfresco-core';
import { AlfrescoAuthenticationService, AlfrescoApiService, AlfrescoSettingsService, StorageService } from 'ng2-alfresco-core';
import { fakeBpmUser } from '../assets/fake-bpm-user.service.mock';
declare let jasmine: any;
describe('Bpm User service', () => {
describe('BpmUserService', () => {
let service, injector, authService, apiService;
@@ -32,7 +32,8 @@ describe('Bpm User service', () => {
AlfrescoSettingsService,
AlfrescoApiService,
AlfrescoAuthenticationService,
BpmUserService
BpmUserService,
StorageService
]);
});

View File

@@ -20,14 +20,15 @@ import {
AlfrescoAuthenticationService,
AlfrescoApiService,
AlfrescoSettingsService,
AlfrescoContentService
AlfrescoContentService,
StorageService
} from 'ng2-alfresco-core';
import { EcmUserService } from '../services/ecm-user.service';
import { fakeEcmUser } from '../assets/fake-ecm-user.service.mock';
declare let jasmine: any;
describe('Ecm User service', () => {
describe('EcmUserService', () => {
let service, injector, authService, contentService, apiService;
@@ -37,7 +38,8 @@ describe('Ecm User service', () => {
AlfrescoApiService,
AlfrescoAuthenticationService,
AlfrescoContentService,
EcmUserService
EcmUserService,
StorageService
]);
});