Sha256: fab6308f14dc60d034e7b5027aa7abcf58c6ee931166ad420a4b666ca68b660d
Contents?: true
Size: 547 Bytes
Versions: 5
Compression:
Stored size: 547 Bytes
Contents
var less = require('../lib/less'), fs = require('fs'); var input = fs.readFileSync("./test/less/modifyVars/extended.less", 'utf8'); var expectedCss = fs.readFileSync('./test/css/modifyVars/extended.css', 'utf8'); var options = { modifyVars: JSON.parse(fs.readFileSync("./test/less/modifyVars/extended.json", 'utf8')) }; less.render(input, options, function (err, result) { if (err) { console.log(err); } if (result.css === expectedCss) { console.log("PASS"); } else { console.log("FAIL"); } });
Version data entries
5 entries across 5 versions & 2 rubygems