* move `preflight` tests to `plugins` test folder * move `container` tests to `plugins` test folder * add a test that ensures that all built-in plugins have tests This is based on a few assumptions: 1. All plugins exist in the `corePlugins.js` file and are exported as `corePlugins` 2. Each exported plugin in that object has a file with a corresponding name in the current (`tests/plugins/`) folder * add dedicated plugin tests in the `plugins` folder * add a test that ensures that all built-in variant plugins have tests This is based on a few assumptions: 1. All variant plugins exist in the `corePlugins.js` file and are exported as `variantPlugins` 2. Each exported plugin in that object has a file with a corresponding name in the current (`tests/plugins/variants/`) folder * add dedicated variant plugin tests in the `plugins/variants` folder * cleanup basic usage test * move existing animation tests to animation plugin tests * move `apply-important-selector` tests to more appropriate location
58 lines
959 B
JavaScript
58 lines
959 B
JavaScript
import { css, quickPluginTest } from '../util/run'
|
|
|
|
quickPluginTest('gridColumnEnd', {
|
|
safelist: [
|
|
// Arbitrary avlues
|
|
'col-end-[123]',
|
|
'col-end-[var(--my-value)]',
|
|
],
|
|
}).toMatchFormattedCss(css`
|
|
.col-end-1 {
|
|
grid-column-end: 1;
|
|
}
|
|
.col-end-10 {
|
|
grid-column-end: 10;
|
|
}
|
|
.col-end-11 {
|
|
grid-column-end: 11;
|
|
}
|
|
.col-end-12 {
|
|
grid-column-end: 12;
|
|
}
|
|
.col-end-13 {
|
|
grid-column-end: 13;
|
|
}
|
|
.col-end-2 {
|
|
grid-column-end: 2;
|
|
}
|
|
.col-end-3 {
|
|
grid-column-end: 3;
|
|
}
|
|
.col-end-4 {
|
|
grid-column-end: 4;
|
|
}
|
|
.col-end-5 {
|
|
grid-column-end: 5;
|
|
}
|
|
.col-end-6 {
|
|
grid-column-end: 6;
|
|
}
|
|
.col-end-7 {
|
|
grid-column-end: 7;
|
|
}
|
|
.col-end-8 {
|
|
grid-column-end: 8;
|
|
}
|
|
.col-end-9 {
|
|
grid-column-end: 9;
|
|
}
|
|
.col-end-\[123\] {
|
|
grid-column-end: 123;
|
|
}
|
|
.col-end-\[var\(--my-value\)\] {
|
|
grid-column-end: var(--my-value);
|
|
}
|
|
.col-end-auto {
|
|
grid-column-end: auto;
|
|
}
|
|
`)
|