This commit is contained in:
Skillz4Killz
2023-10-28 13:32:28 +00:00
11 changed files with 280 additions and 77 deletions
+2
View File
@@ -15,12 +15,14 @@ describe('bucket.ts', () => {
let clock: sinon.SinonFakeTimers
beforeEach(() => {
console.log('before')
clock = sinon.useFakeTimers()
})
afterEach(() => {
sinon.restore()
clock.restore()
console.log('after')
})
describe('LeakyBucket function', () => {