[ADF-2139] extra cookie availability check (#2865)

* extra cookie availability check

* code style and test fixes

* unit tests
This commit is contained in:
Denys Vuika
2018-01-31 17:37:42 +00:00
committed by Eugenio Romano
parent 900fd70d63
commit 49456b3fcd
4 changed files with 59 additions and 5 deletions

View File

@@ -15,7 +15,9 @@
* limitations under the License.
*/
export class CookieServiceMock {
import { CookieService } from '../services/cookie.service';
export class CookieServiceMock extends CookieService {
getItem(key: string): string | null {
return this[key] && this[key].data || null;