Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dcastil committed Dec 21, 2024
1 parent 70b258c commit 3be292b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/type-generics.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, test } from 'vitest'

import { extendTailwindMerge, fromTheme, getDefaultConfig, mergeConfigs } from '../src'
import { GenericConfig } from '../src/lib/types'
import { AnyConfig } from '../src/lib/types'

test('extendTailwindMerge type generics work correctly', () => {
const tailwindMerge1 = extendTailwindMerge({
Expand Down Expand Up @@ -69,7 +69,7 @@ test('extendTailwindMerge type generics work correctly', () => {

expect(tailwindMerge2('')).toBe('')

const tailwindMerge3 = extendTailwindMerge((v: GenericConfig) => v, getDefaultConfig)
const tailwindMerge3 = extendTailwindMerge((v: AnyConfig) => v, getDefaultConfig)

expect(tailwindMerge3('')).toBe('')
})
Expand Down

0 comments on commit 3be292b

Please sign in to comment.