Skip to content

Commit

Permalink
Workaround for Sinon bug that repeatedly quotes things
Browse files Browse the repository at this point in the history
I discovered this bug while working on this, there's a PR for fix here
for reference: sinonjs/sinon#2407
  • Loading branch information
cincodenada committed Nov 2, 2021
1 parent de3e205 commit c1cec44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/messages.js
Expand Up @@ -18,11 +18,11 @@ function makeErrorMessageTransform(transform) {
};
}
var stripQuotes = makeErrorMessageTransform(function (message) {
return message.replace(/['"]/g, "");
return message.replace(/\\*['"]/g, "");
});
var stripColors = makeErrorMessageTransform(stripAnsi);
var stripQuotesAndColors = makeErrorMessageTransform(function (message) {
return stripAnsi(message).replace(/['"]/g, "");
return stripAnsi(message).replace(/\\*['"]/g, "");
});

describe("Messages", function () {
Expand Down

0 comments on commit c1cec44

Please sign in to comment.