mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2026-01-18 16:17:36 +00:00
* remove all oxide related code * Update lightningcss to version 1.24.1 * update tests to match bumped Lightning CSS output --------- Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
26 lines
792 B
JavaScript
26 lines
792 B
JavaScript
import configurePlugins from '../src/util/configurePlugins'
|
|
|
|
test('setting a plugin to false removes it', () => {
|
|
const plugins = ['fontSize', 'display', 'backgroundPosition']
|
|
|
|
const configuredPlugins = configurePlugins({ display: false }, plugins)
|
|
|
|
expect(configuredPlugins).toEqual(['fontSize', 'backgroundPosition'])
|
|
})
|
|
|
|
test('passing only false removes all plugins', () => {
|
|
const plugins = ['fontSize', 'display', 'backgroundPosition']
|
|
|
|
const configuredPlugins = configurePlugins(false, plugins)
|
|
|
|
expect(configuredPlugins).toEqual([])
|
|
})
|
|
|
|
test('passing an array safelists plugins', () => {
|
|
const plugins = ['fontSize', 'display', 'backgroundPosition']
|
|
|
|
const configuredPlugins = configurePlugins(['display'], plugins)
|
|
|
|
expect(configuredPlugins).toEqual(['display'])
|
|
})
|