Home

tailwind-ctp-intellisense @6ecb0011cfb7ac1e5e234acfd49459fb6ca2783e - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tailwind-ctp-intellisense / packages / tailwindcss-language-server / tests / commands / commands.test.js
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
import { test, expect } from 'vitest'
import { withFixture } from '../common'

withFixture('basic', (c) => {
  test.concurrent('sortSelection', async () => {
    let textDocument = await c.openDocument({ text: '<div class="sm:p-0 p-0">' })
    let res = await c.sendRequest('@/tailwindCSS/sortSelection', {
      uri: textDocument.uri,
      classLists: ['sm:p-0 p-0'],
    })

    expect(res).toEqual({ classLists: ['p-0 sm:p-0'] })
  })
})