Skip to content

Commit

Permalink
Try to fix CI for missing error code
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Nov 24, 2017
1 parent a67757e commit 87eba67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/jest/setupTests.js
Expand Up @@ -70,6 +70,9 @@ if (process.env.REACT_CLASS_EQUIVALENCE_TEST) {
.map(s => s.substr('args[]='.length))
.map(decodeURIComponent);
const format = errorMap[code];
if (!format) {
return message;
}
let argIndex = 0;
return format.replace(/%s/g, () => args[argIndex++]);
};
Expand Down

0 comments on commit 87eba67

Please sign in to comment.