We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f01f101 commit d0a5c4cCopy full SHA for d0a5c4c
packages/client/lib/sentinel/index.spec.ts
@@ -1029,8 +1029,8 @@ describe.skip('legacy tests', () => {
1029
await sentinel.get('x');
1030
1031
1032
- assert.equal(1, csc.cacheMisses());
1033
- assert.equal(3, csc.cacheHits());
+ assert.equal(1, csc.stats().missCount);
+ assert.equal(3, csc.stats().hitCount);
1034
1035
const invalidatePromise = once(csc, 'invalidate');
1036
await sentinel.set('x', 2);
@@ -1040,8 +1040,8 @@ describe.skip('legacy tests', () => {
1040
1041
1042
1043
- assert.equal(csc.cacheMisses(), 2);
1044
- assert.equal(csc.cacheHits(), 6);
+ assert.equal(csc.stats().missCount, 2);
+ assert.equal(csc.stats().hitCount, 6);
1045
})
1046
});
1047
0 commit comments