Skip to content

Commit

Permalink
Fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Mar 15, 2024
1 parent 4f0930e commit f2371d6
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions lib/util/stats.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,26 +511,24 @@ describe('util/stats', () => {
expect(logger.logger.debug).toHaveBeenCalledTimes(1);
const [data, msg] = logger.logger.debug.mock.calls[0];
expect(msg).toBe('HTTP cache statistics');
expect(data).toEqual(
{
"https://example.com/bar": {
"localHits": 0,
"localMisses": 1,
"localTotal": 1,
"remoteHits": 1,
"remoteMisses": 1,
"remoteTotal": 2,
},
"https://example.com/foo": {
"localHits": 2,
"localMisses": 1,
"localTotal": 3,
"remoteHits": 0,
"remoteMisses": 0,
"remoteTotal": 0,
},
}
);
expect(data).toEqual({
'https://example.com/bar': {
localHits: 0,
localMisses: 1,
localTotal: 1,
remoteHits: 1,
remoteMisses: 1,
remoteTotal: 2,
},
'https://example.com/foo': {
localHits: 2,
localMisses: 1,
localTotal: 3,
remoteHits: 0,
remoteMisses: 0,
remoteTotal: 0,
},
});
});
});
});

0 comments on commit f2371d6

Please sign in to comment.