Home

tailwind-ctp-intellisense @1cc8e62da32895c892624a9f631cd7d16973aa81 - 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'] })
  })
})