unexpected-messy
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -541,3 +541,7 @@ var messy = require('messy'), | ||
} catch (e) { | ||
output.append(e.createDiff(output.clone(), diff, inspect, equal).diff); | ||
if (e._isUnexpected) { | ||
output.append(e.createDiff(output.clone(), diff, inspect, equal).diff); | ||
} else { | ||
expect.fail(e); | ||
} | ||
} | ||
@@ -549,3 +553,7 @@ output.nl(); | ||
} catch (e) { | ||
output.append(e.createDiff(output.clone(), diff, inspect, equal).diff); | ||
if (e._isUnexpected) { | ||
output.append(e.createDiff(output.clone(), diff, inspect, equal).diff); | ||
} else { | ||
expect.fail(e); | ||
} | ||
} | ||
@@ -694,3 +702,7 @@ return { | ||
} catch (e) { | ||
output.append(e.createDiff(output.clone(), diff, inspect, equal).diff); | ||
if (e._isUnexpected) { | ||
output.append(e.createDiff(output.clone(), diff, inspect, equal).diff); | ||
} else { | ||
expect.fail(e); | ||
} | ||
} | ||
@@ -704,3 +716,7 @@ try { | ||
} catch (e) { | ||
output.nl().append(e.createDiff(output.clone(), diff, inspect, equal).diff); | ||
if (e._isUnexpected) { | ||
output.nl().append(e.createDiff(output.clone(), diff, inspect, equal).diff); | ||
} else { | ||
expect.fail(e); | ||
} | ||
} | ||
@@ -767,3 +783,7 @@ return { | ||
} catch (e) { | ||
output.append(e.createDiff(output.clone(), diff, inspect, equal).diff); | ||
if (e._isUnexpected) { | ||
output.append(e.createDiff(output.clone(), diff, inspect, equal).diff); | ||
} else { | ||
expect.fail(e); | ||
} | ||
} | ||
@@ -786,3 +806,7 @@ } else { | ||
} catch (e) { | ||
output.append(e.createDiff(output.clone(), diff, inspect, equal).diff); | ||
if (e._isUnexpected) { | ||
output.append(e.createDiff(output.clone(), diff, inspect, equal).diff); | ||
} else { | ||
expect.fail(e); | ||
} | ||
} | ||
@@ -789,0 +813,0 @@ } else { |
{ | ||
"name": "unexpected-messy", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Unexpected plugin for the messy library", | ||
@@ -5,0 +5,0 @@ "main": "lib/unexpectedMessy.js", |
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
110265
2087