From 45dc2162dc21702f7e28698f7e1e9f691758f009 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 22 Oct 2021 17:30:20 +0200 Subject: [PATCH] fix unit tests --- src/utils/LRUCache.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/LRUCache.ts b/src/utils/LRUCache.ts index 05d8fef5..c5a7cd06 100644 --- a/src/utils/LRUCache.ts +++ b/src/utils/LRUCache.ts @@ -135,7 +135,7 @@ export function tests() { "evict callback is called": assert => { let evictions = 0; class CustomCache extends LRUCache { - _onEvictEntry(entry) { + onEvictEntry(entry) { assert.equal(entry.name, "Alice"); evictions += 1; } @@ -149,7 +149,7 @@ export function tests() { "evict callback is called when replacing entry with same identity": assert => { let evictions = 0; class CustomCache extends LRUCache { - _onEvictEntry(entry) { + onEvictEntry(entry) { assert.equal(entry.name, "Alice"); evictions += 1; }