grunt-contrib-qunit
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "grunt-contrib-qunit", | ||
"description": "Run QUnit unit tests in a headless PhantomJS instance", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Grunt Team", |
@@ -36,8 +36,13 @@ /* | ||
// Parse some stuff before sending it. | ||
var actual, expected; | ||
var actual, expected, dump; | ||
if (!obj.result) { | ||
// In order to maintain backwards compatibility with `QUnit <1.15.0` | ||
// Older versions of QUnit (`<1.15.0`) use `QUnit.jsDump`, but this poperty was | ||
// deprecated and moved to `QUnit.dump` and will be removed in `QUnit 2.0`. | ||
dump = QUnit.dump || QUnit.jsDump; | ||
// Dumping large objects can be very slow, and the dump isn't used for | ||
// passing tests, so only dump if the test failed. | ||
actual = QUnit.jsDump.parse(obj.actual); | ||
expected = QUnit.jsDump.parse(obj.expected); | ||
actual = dump.parse(obj.actual); | ||
expected = dump.parse(obj.expected); | ||
} | ||
@@ -44,0 +49,0 @@ // Send it. |
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
23036
274