Skip to content

Commit

Permalink
improve test consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
nruffing committed Jan 5, 2024
1 parent a0f928c commit d0d4956
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/composables/useDebounce.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async function executeDebounceTest(
}

describe('useDebounce', () => {
nativeEventVueOptions.debugLog = true
//nativeEventVueOptions.debugLog = true

test('successfully debounces - timeout mode', async () => {
const debounceMs = 100
Expand Down Expand Up @@ -124,15 +124,15 @@ describe('useDebounce', () => {
await executeDebounceTest(calls, debounceMs, DebounceMode.ImmediateAndTimeout, expected)
})

test('successfully debounces - maximum frequency', async () => {
test.only('successfully debounces - maximum frequency', async () => {
const debounceMs = 200

const calls = [
{ delay: 0, arg1: 'a', arg2: 1 },
{ delay: 160, arg1: 'a1', arg2: 11 },
{ delay: 120, arg1: 'a', arg2: 1 },
{ delay: 20, arg1: 'a', arg2: 1 },
{ delay: 40, arg1: 'b', arg2: 2 },
{ delay: 10, arg1: 'a', arg2: 1 },
{ delay: 10, arg1: 'b', arg2: 2 },
{ delay: 220, arg1: 'c', arg2: 3 },
] as DebounceTestCall[]

Expand Down

0 comments on commit d0d4956

Please sign in to comment.