1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-21 06:16:43 +00:00

WORKERFS performance fix for reads; prepend "__" to store avoid local storage corruption

This commit is contained in:
Steven Hugg
2018-08-06 11:20:55 -04:00
parent 6670e27035
commit 2e37e22eb8
4 changed files with 27 additions and 2 deletions
+4
View File
@@ -63,8 +63,12 @@ describe('Store', function() {
assert.equal('true', localItems['__migrated__TEST']);
store.getItem('test', function(err, result) {
if (err) done(err);
// did it convert?
assert.equal(result, 'a');
assert.equal(7, localMods);
// did we not mess with original storage?
assert.equal(localStorage.getItem('_TEST/test'), 'a');
assert.equal(localStorage.getItem('_TEST/local/test'), 'b');
done();
});
});