Skip to content

Commit 2eabb99

Browse files
committed
Clear the cache before importing to verify that it works
1 parent f9d07a9 commit 2eabb99

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,7 @@ describe('node-cache', function() {
769769
cache.put('key2', 'value2', 1000);
770770
var exportedJson = cache.exportJson();
771771

772+
cache.clear();
772773
cache.put('key1', 'changed value', 5000);
773774
cache.put('key3', 'value3', 500);
774775

@@ -779,14 +780,14 @@ describe('node-cache', function() {
779780
value: 'changed value',
780781
expire: START_TIME + 5000,
781782
},
782-
key2: {
783-
value: 'value2',
784-
expire: START_TIME + 1000,
785-
},
786783
key3: {
787784
value: 'value3',
788785
expire: START_TIME + 500,
789786
},
787+
key2: {
788+
value: 'value2',
789+
expire: START_TIME + 1000,
790+
},
790791
}));
791792
});
792793

0 commit comments

Comments
 (0)