Comparing version 5.4.0 to 5.4.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var chai_1 = require("chai"); | ||
function matchRuleAndDeclaration(parent, selectorIndex, selector, decl, msg) { | ||
var rule = parent.nodes[selectorIndex]; | ||
chai_1.expect(rule.selector, (msg ? msg + ' ' : '') + "selector " + selectorIndex).to.equal(selector); | ||
chai_1.expect(rule.nodes.map(function (x) { return x.toString(); }).join(';'), (msg ? msg + ' ' : '') + "selector " + selectorIndex + " first declaration").to.equal(decl); | ||
if (rule.selector !== selector) { | ||
throw new Error((msg ? msg + ' ' : '') + "selector " + selectorIndex); | ||
} | ||
// expect(rule.selector, `${msg ? msg + ' ' : ''}selector ${selectorIndex}`).to.equal(selector); | ||
if (rule.nodes.map(function (x) { return x.toString(); }).join(';') !== decl) { | ||
throw new Error((msg ? msg + ' ' : '') + "selector " + selectorIndex + " first declaration"); | ||
} | ||
} | ||
@@ -9,0 +13,0 @@ exports.matchRuleAndDeclaration = matchRuleAndDeclaration; |
{ | ||
"name": "stylable", | ||
"version": "5.4.0", | ||
"version": "5.4.1", | ||
"description": "CSS for Components", | ||
@@ -46,3 +46,3 @@ "main": "./dist/src/index.js", | ||
"license": "BSD-3-Clause", | ||
"gitHead": "e2680fc7fdb08a07faf1d9573ec8733dac125251" | ||
"gitHead": "487bea06faa86af76632b27a689bde70edc889f8" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1208298
17059