Skip to content

Commit

Permalink
Rename variable "unexpected" => "expect" in top-level creation code.
Browse files Browse the repository at this point in the history
This improves consistency with the rest of the file.
  • Loading branch information
alexjeffburke committed Dec 9, 2019
1 parent 9c35e90 commit bf64367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/createTopLevelExpect.js
Expand Up @@ -84,7 +84,7 @@ function getOrGroups(expectations) {
return orGroups;
}

function evaluateGroup(unexpected, context, subject, orGroup, forwardedFlags) {
function evaluateGroup(expect, context, subject, orGroup, forwardedFlags) {
return orGroup.map(expectation => {
const args = Array.prototype.slice.call(expectation);
args.unshift(subject);
Expand All @@ -101,7 +101,7 @@ function evaluateGroup(unexpected, context, subject, orGroup, forwardedFlags) {
return args[1](args[0]);
}
} else {
return unexpected._expect(context.child(), args, forwardedFlags);
return expect._expect(context.child(), args, forwardedFlags);
}
})
};
Expand Down

0 comments on commit bf64367

Please sign in to comment.