Home

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