♻️ Moves throttling to socket out

This commit is contained in:
Rune Harlyk
2026-01-02 23:07:44 +01:00
parent 21bd4fa837
commit 4da929a6de
6 changed files with 34 additions and 45 deletions
+3 -3
View File
@@ -1,13 +1,13 @@
import { describe, it, expect, beforeEach, afterEach, vitest } from 'vitest'
import { throttler } from '../../src/lib/utilities/buffer-utilities'
import { Throttler } from '../../src/lib/utilities/buffer-utilities'
describe('throttler', () => {
let throttleInstance: throttler
let throttleInstance: Throttler
let callback: () => void
beforeEach(() => {
vitest.useFakeTimers()
throttleInstance = new throttler()
throttleInstance = new Throttler()
callback = vitest.fn()
})