Skip to content

Commit 22834f2

Browse files
committed
restore store value tests
1 parent 4e50cee commit 22834f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/utils/test/stats.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ describe('cacheable stats', () => {
134134
expect(stats.vsize).toBe(6);
135135
expect(stats.ksize).toBe(6);
136136
expect(stats.count).toBe(1);
137+
stats.resetStoreValues();
138+
expect(stats.vsize).toBe(0);
139+
expect(stats.ksize).toBe(0);
140+
expect(stats.count).toBe(0);
137141
});
138142
test('should get the rough size of the stats object', () => {
139143
const stats = new Stats();

0 commit comments

Comments
 (0)