Skip to content

Commit

Permalink
chore(test): fix logging call in peer test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshNels committed Jun 11, 2024
1 parent 2959710 commit e5c73e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/os/xt/peer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ describe('Peer', function() {
// mock storage
var storage;

var stringifyStorage = function(stor) {
var stringifyStorage = function(store) {
var str = '';
for (var cursor = 0, len = stor.length; cursor < len; cursor++) {
var key = stor.key(cursor);
str += '\n ' + key + ': ' + stor.getItem(key);
for (var cursor = 0, len = store.length; cursor < len; cursor++) {
var key = store.key(cursor);
str += '\n ' + key + ': ' + store.getItem(key);
}
return 'storage: {' + str + (str.length ? '\n' : '') + '}';
};
Expand Down Expand Up @@ -947,7 +947,7 @@ describe('Peer', function() {
runs(function() {
expect(storage.length).toBe(0);
if (storage.length > 0) {
console.log('freakin\' lingerers, man:\n' + stringifyStorage());
console.log('lingerers:\n' + stringifyStorage(storage));
}
});
});
Expand Down

0 comments on commit e5c73e6

Please sign in to comment.