Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Update test.js
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Bassut <patrickbassut@hotmail.com>
  • Loading branch information
nd4p90x and pbassut committed Aug 16, 2021
1 parent 87882f1 commit cdc7f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Expand Up @@ -267,7 +267,7 @@ test('enqueue - don\'t reset an existing timer', async t => {
t.true(client.flush.calledOnce)
})

test('enqueue - cancel timer when flushing at max length', async t => {
test('enqueue - prevent flushing through time interval when already flushed by flushAt', async t => {
const client = createClient({ flushAt: 2, flushInterval: 10 })
client.flushed = false
spy(client, 'flush')
Expand Down

0 comments on commit cdc7f27

Please sign in to comment.