Closed torarvid closed 6 years ago
Merging #43 into master will increase coverage by
0.04%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #43 +/- ##
==========================================
+ Coverage 94% 94.04% +0.04%
==========================================
Files 14 14
Lines 400 403 +3
Branches 83 83
==========================================
+ Hits 376 379 +3
Misses 23 23
Partials 1 1
Impacted Files | Coverage Δ | |
---|---|---|
src/identity.js | 91.03% <100%> (+0.06%) |
:arrow_up: |
src/cache.js | 93.02% <100%> (+0.34%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 58aab48...d842ef0. Read the comment docs.
Fixes #40
There were two things happening here:
setTimeout
that would remove cached items after anexpiresIn
amount of milliseconds (coming from the Schibsted account backend). When Safari is used, the backend sends 2592000000 (30 days), which exceeds the maximum value forsetTimeout
and in this case, it executes immediately.