File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
packages/commons/tests/unit Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -81,22 +81,6 @@ describe('Class: LRUMap', () => {
81
81
// Assess
82
82
expect ( value ) . toBeUndefined ( ) ;
83
83
} ) ;
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
- } ) ;
100
84
} ) ;
101
85
102
86
describe ( 'Method: has' , ( ) => {
@@ -142,7 +126,7 @@ describe('Class: LRUMap', () => {
142
126
expect ( cache . get ( 'a' ) ) . toBeUndefined ( ) ;
143
127
} ) ;
144
128
145
- it ( 'it does nothing when called on an empty cache ' , ( ) => {
129
+ it ( 'it does nothing when called on a non-existing key ' , ( ) => {
146
130
// Prepare
147
131
const cache = new LRUCache ( ) ;
148
132
cache . add ( 'a' , 1 ) ;
You can’t perform that action at this time.
0 commit comments