2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-04-10 11:01:50 +00:00
2017-07-31 15:51:51 +05:30

34 lines
874 B
JavaScript

var alreadyRun = false;
describe("less.js modify vars", function () {
beforeEach(function (done) {
// simulating "setUp" or "beforeAll" method
if (alreadyRun) {
done();
return;
}
alreadyRun = true;
less.pageLoadFinished
.then(function () {
less.modifyVars({
var1: "green",
var2: "purple",
scale: 20
}).then(function () {
done();
});
});
});
testLessEqualsInDocument();
it("Should log only 2 XHR requests", function (done) {
var xhrLogMessages = logMessages.filter(function (item) {
return (/XHR: Getting '/).test(item);
});
expect(xhrLogMessages.length).toEqual(2);
done();
});
});