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