unexpected
Advanced tools
Comparing version 10.21.0 to 10.21.1
@@ -9,3 +9,3 @@ module.exports = { | ||
'error', { | ||
devDependencies: [ '**/test/**/*.js' ], | ||
devDependencies: [ '**/test/**/*.js', '**/bootstrap-unexpected-markdown.js' ], | ||
optionalDependencies: false, | ||
@@ -12,0 +12,0 @@ peerDependencies: false |
/*global unexpected:true*/ | ||
unexpected = require('./lib/'); | ||
unexpected.output.preferredWidth = 80; | ||
require('./test/promisePolyfill'); |
@@ -260,2 +260,7 @@ var utils = require('./utils'); | ||
} | ||
var matchTrailingSpace = line.match(/^(.*[^ ])?( +)$/); | ||
if (matchTrailingSpace) { | ||
line = matchTrailingSpace[1] || ''; | ||
} | ||
if (markUpSpecialCharacters) { | ||
@@ -272,2 +277,5 @@ line.split(specialCharRegExp).forEach(function (part) { | ||
} | ||
if (matchTrailingSpace) { | ||
this[{'+': 'diffAddedHighlight', '-': 'diffRemovedHighlight'}[ch] || baseStyle](matchTrailingSpace[2]); | ||
} | ||
if (i !== lines.length - 1) { | ||
@@ -274,0 +282,0 @@ this.nl(); |
{ | ||
"name": "unexpected", | ||
"version": "10.21.0", | ||
"version": "10.21.1", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
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
770656
19272