Skip to content

Commit 33ee58a

Browse files
committed
chore: address PR review
1 parent 86eb246 commit 33ee58a

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

packages/commons/tests/unit/LRUCache.test.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -81,22 +81,6 @@ describe('Class: LRUMap', () => {
8181
// Assess
8282
expect(value).toBeUndefined();
8383
});
84-
85-
it('marks the item as the most recently used', () => {
86-
// Prepare
87-
const cache = new LRUCache();
88-
cache.add('a', 1);
89-
cache.add('b', 2);
90-
cache.add('c', 3);
91-
92-
// Act
93-
cache.get('b');
94-
95-
// Assess
96-
expect(cache.get('a')).toBe(1);
97-
expect(cache.get('b')).toBe(2);
98-
expect(cache.get('c')).toBe(3);
99-
});
10084
});
10185

10286
describe('Method: has', () => {
@@ -142,7 +126,7 @@ describe('Class: LRUMap', () => {
142126
expect(cache.get('a')).toBeUndefined();
143127
});
144128

145-
it('it does nothing when called on an empty cache', () => {
129+
it('it does nothing when called on a non-existing key', () => {
146130
// Prepare
147131
const cache = new LRUCache();
148132
cache.add('a', 1);

0 commit comments

Comments
 (0)