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

Version Path
ilog-0.4.1 node_modules/less/test/modify-vars.js
ilog-0.4.0 node_modules/less/test/modify-vars.js
ilog-0.3.3 node_modules/less/test/modify-vars.js
less-execjs-2.6.0.4 lib/less/js/less/test/modify-vars.js
less-execjs-2.6.0.3 lib/less/js/less/test/modify-vars.js