@stylable/core-test-kit
Advanced tools
Comparing version 2.3.3-alpha.1 to 2.4.0
@@ -81,5 +81,2 @@ "use strict"; | ||
const expectedWarning = expectedWarnings[i]; | ||
if (!expectedWarning) { | ||
return; | ||
} | ||
const path = expectedWarning.file; | ||
@@ -86,0 +83,0 @@ chai_1.expect(report.message).to.equal(expectedWarning.message); |
{ | ||
"name": "@stylable/core-test-kit", | ||
"version": "2.3.3-alpha.1", | ||
"version": "2.4.0", | ||
"description": "Stylable core test-kit", | ||
@@ -14,3 +14,3 @@ "main": "./cjs/index.js", | ||
"dependencies": { | ||
"@stylable/core": "^2.3.3-alpha.1", | ||
"@stylable/core": "^2.4.0", | ||
"chai": "^4.2.0", | ||
@@ -34,3 +34,3 @@ "flat": "^5.0.0", | ||
"license": "BSD-3-Clause", | ||
"gitHead": "9dfdbda11e88cfd20459ec0e3fbdca24f2e2223b" | ||
"gitHead": "8eff3a9c749f71d4f9a5578e3b57be6034ef1435" | ||
} |
@@ -66,3 +66,5 @@ import { Diagnostics, process, safeParse, StylableMeta, StylableResults } from '@stylable/core'; | ||
report.type, | ||
`diagnostics severity mismatch, expected "${expectedWarning.severity}" but received "${report.type}"` | ||
`diagnostics severity mismatch, expected "${ | ||
expectedWarning.severity | ||
}" but received "${report.type}"` | ||
).to.equal(expectedWarning.severity); | ||
@@ -100,21 +102,16 @@ } | ||
const expectedWarning = expectedWarnings[i]; | ||
if (!expectedWarning) { | ||
return; | ||
} | ||
const path = expectedWarning.file; | ||
expect(report.message).to.equal(expectedWarning.message); | ||
if (!expectedWarning.skipLocationCheck) { | ||
expect(report.node.source!.start).to.eql(locations[path].start); | ||
} | ||
if (locations[path].word !== null) { | ||
expect(report.options.word).to.eql(locations[path].word); | ||
} | ||
if (expectedWarning.severity) { | ||
expect( | ||
report.type, | ||
`diagnostics severity mismatch, expected ${expectedWarning.severity} but received ${report.type}` | ||
`diagnostics severity mismatch, expected ${expectedWarning.severity} but received ${ | ||
report.type | ||
}` | ||
).to.equal(expectedWarning.severity); | ||
@@ -121,0 +118,0 @@ } |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
50006
787
Updated@stylable/core@^2.4.0