Skip to content

Commit b6c630b

Browse files
Merge pull request #15 from contentstack/cache_hotfix
Resolved localstorage issue
2 parents 7377d1f + 21791c1 commit b6c630b

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/core/cache.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ export function get(key) {
1414
export function set(key, data) {
1515
try {
1616
if (typeof data === 'object') {
17-
console.log("storage", storage)
18-
storage.setItem(key, JSON.stringify(data));
19-
//localStorage.setItem("hello", "Smith");
17+
storage.setItem(key, JSON.stringify(data));
2018
} else {
21-
console.log("else")
2219
storage.setItem(key, data);
2320
}
2421
} catch (error) {

test/entry/find.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ test('default .find()', function(assert) {
3030
.toJSON()
3131
.find()
3232
.then(function success(entries) {
33-
console.log("entrieswsss", entries)
3433
// assert.ok("entries" in result, 'Entries key present in the resultset');
3534
// assert.equal(Utils.isEntriesPublished(entries[0], Stack.environment_uid, 'en-us'), true, "Entries present in the resultset are published.");
3635
assert.ok(entries[0].length, 'Entries present in the resultset');
@@ -295,7 +294,6 @@ test('.where() compare boolean value (true)', function(assert) {
295294
.toJSON()
296295
.find()
297296
.then(function success(entries) {
298-
console.log("entriesssss", entries)
299297
assert.ok(entries[0].length, 'Entries present in the resultset');
300298
assert.equal(entries[0].length, 4, 'two entries present in the resultset');
301299
assert.end();
@@ -1111,10 +1109,8 @@ test('.except() - Single String Parameter', function(assert) {
11111109
.toJSON()
11121110
.find()
11131111
.then(function success(entries) {
1114-
console.log("cmd,cmdcmd", entries)
11151112
// assert.ok("entries" in result, 'Entries key present in the resultset');
11161113
var flag = entries[0].every(function(entry) {
1117-
console.log("cmd,cmdcmd11111111", entry)
11181114
return (entry && !("title" in entry));
11191115
});
11201116
assert.ok(flag, 'entries without the field title in the resultset');

0 commit comments

Comments
 (0)