@@ -56,7 +56,7 @@ describe('KvDebounceCache', () => {
56
56
await kvDebounceCache . set ( key , Buffer . from ( 'test2' , 'base64url' ) ) ;
57
57
const result = await kvDebounceCache . get ( key ) ;
58
58
assert . notEqual ( result , undefined ) ;
59
- assert . equal ( toB64Url ( result ! ) , 'test' ) ; // eslint-disable-line @typescript-eslint/no-non-null-assertion
59
+ assert . equal ( toB64Url ( result ! ) , 'test' ) ;
60
60
} ) ;
61
61
62
62
describe ( 'debounceFn' , ( ) => {
@@ -78,7 +78,7 @@ describe('KvDebounceCache', () => {
78
78
} ) ;
79
79
await kvDebounceStore . get ( key ) ;
80
80
const result = await kvBufferStore . get ( key ) ;
81
- assert . equal ( result ! . toString ( 'utf-8' ) , 'test' ) ; // eslint-disable-line @typescript-eslint/no-non-null-assertion
81
+ assert . equal ( result ! . toString ( 'utf-8' ) , 'test' ) ;
82
82
assert . equal ( callCount , 1 ) ;
83
83
} ) ;
84
84
@@ -101,7 +101,7 @@ describe('KvDebounceCache', () => {
101
101
} ,
102
102
} ) ;
103
103
const result = await kvBufferStore . get ( key ) ;
104
- assert . equal ( result , undefined ) ; // eslint-disable-line @typescript-eslint/no-non-null-assertion
104
+ assert . equal ( result , undefined ) ;
105
105
assert . equal ( callCount , 0 ) ;
106
106
assert . equal ( lastCallTimestamp , 0 ) ;
107
107
} ) ;
@@ -138,7 +138,7 @@ describe('KvDebounceCache', () => {
138
138
const result = await kvDebounceStore . get ( key ) ;
139
139
assert . equal ( callCount , 2 ) ;
140
140
assert . ok ( lastCallTimestamp >= Date . now ( ) - 10 ) ;
141
- assert . equal ( result ! . toString ( 'utf-8' ) , '1' ) ; // eslint-disable-line @typescript-eslint/no-non-null-assertion
141
+ assert . equal ( result ! . toString ( 'utf-8' ) , '1' ) ;
142
142
} ) ;
143
143
144
144
it ( 'should call debounceFn on cache hit after the cache hit debounce ttl expires' , async ( ) => {
@@ -163,7 +163,7 @@ describe('KvDebounceCache', () => {
163
163
164
164
// should hydrate immediately
165
165
const result = await kvDebounceStore . get ( key ) ;
166
- assert . equal ( result ! . toString ( 'utf-8' ) , 'test0' ) ; // eslint-disable-line @typescript-eslint/no-non-null-assertion
166
+ assert . equal ( result ! . toString ( 'utf-8' ) , 'test0' ) ;
167
167
assert . ok ( lastCallTimestamp <= Date . now ( ) ) ;
168
168
assert . equal ( callCount , 1 ) ;
169
169
@@ -172,7 +172,7 @@ describe('KvDebounceCache', () => {
172
172
assert . equal ( callCount , 2 ) ;
173
173
assert . ok ( lastCallTimestamp >= Date . now ( ) - 100 ) ;
174
174
const result2 = await kvDebounceStore . get ( key ) ;
175
- assert . equal ( result2 ! . toString ( 'utf-8' ) , 'test1' ) ; // eslint-disable-line @typescript-eslint/no-non-null-assertion
175
+ assert . equal ( result2 ! . toString ( 'utf-8' ) , 'test1' ) ;
176
176
} ) ;
177
177
178
178
// intentional design choice to bubble up errors from debounceFn and let the caller handle them appropriately
0 commit comments