Joshua Poore commented on FLAGON-451:

added dom-storage 2.0.2 (should be pre- jsdom 10) as dev-dependency to Mock 
sessionStorage in unit tests. pushed to FLAGON-434 branch

Again, added function to getInitialSettings ('getSessionId') works in testing 
with example page, exactly as expected. But, unit tests fail


added to getInitialSettings_spec.js:
import 'jsdom-global/register'; #adds global objects like windows to jsdom
import { Storage } from 'dom-storage'; #storage mock
also added sessionStorage within test context
window.sessionStorage = new Storage(null, { strict: true });

> Update unit tests to accommodate session storage features
> ---------------------------------------------------------
>                 Key: FLAGON-451
>                 URL: https://issues.apache.org/jira/browse/FLAGON-451
>             Project: Flagon
>          Issue Type: Sub-task
>          Components: UserALE.js
>    Affects Versions: UserALE.js 2.1.0
>            Reporter: Joshua Poore
>            Assignee: Joshua Poore
>            Priority: Major
>             Fix For: UserALE.js 2.1.0
> session storage needs to be a known object in unit tests.

This message was sent by Atlassian Jira

Reply via email to