https://git.jolheiser.com/tailwind-ctp-intellisense.git
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'] }) }) })