postcss-px2vw-pv
Version:
PostCSS plugin which transfer px to vw when use pv unit directly
13 lines (12 loc) • 420 B
JavaScript
module.exports = async () => {
const postcss = require('postcss');
const sampleEg = require('../example/migrateFromRem/sample');
const pluginEg = require('../example/migrateFromRem/postcss.config');
const pluginTestItemOutput = await postcss(
pluginEg.plugins
).process(sampleEg.styleInput, {
from: undefined,
to: undefined
});
expect(pluginTestItemOutput.css).toBe(sampleEg.styleOutputExpected)
}