-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: Add Unit Tests for Persistence Module #335
base: development
Are you sure you want to change the base?
test: Add Unit Tests for Persistence Module #335
Conversation
SonarCloud Quality Gate failed. 1 Bug No Coverage information |
src/persistence.js
Outdated
if (window.mParticle && window.mParticle._forceNoLocalStorage) { | ||
storage = undefined; | ||
} | ||
|
||
try { | ||
storage.setItem('mparticle', 'test'); | ||
result = storage.getItem('mparticle') === 'test'; | ||
storage.getItem('mparticle') === 'test'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
storage.getItem('mparticle') === 'test'; | |
var result = storage.getItem('mparticle') === 'test'; |
src/persistence.js
Outdated
storage.removeItem('mparticle'); | ||
return result && storage; | ||
return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return true; | |
return result; |
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
b487b59
to
4bf8ef9
Compare
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
e715974
to
6f1f758
Compare
0406bea
to
91b23fe
Compare
91b23fe
to
65c785c
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
1fdcd41
to
029f51e
Compare
SonarCloud Quality Gate failed. 0 Bugs No Coverage information Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
8d955f2
to
3f4f268
Compare
b6883b6
to
b8a1a8f
Compare
f03c5ed
to
3df8d84
Compare
Summary
Master Issue
Closes https://go.mparticle.com/work/SQDSDKS-4431