Skip to content

Commit

Permalink
Reprint some code (prettier); not sure what is going on here.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed Mar 16, 2017
1 parent 26f8af3 commit 9f34b3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 1 addition & 6 deletions packages/jest-jasmine2/src/jasmine-light.js
Original file line number Diff line number Diff line change
Expand Up @@ -1654,12 +1654,7 @@ exports.TreeProcessor = function() {
return executableIndex === undefined ? defaultMax : executableIndex;
}

function segmentChildren(
node,
children,
nodeStats,
executableIndex,
) {
function segmentChildren(node, children, nodeStats, executableIndex) {
let currentSegment = {
index: 0,
owner: node,
Expand Down
6 changes: 4 additions & 2 deletions packages/jest-matchers/src/asymmetric-matchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ class ArrayContaining extends AsymmetricMatcher {
);
}

return this.sample.length === 0 || Array.isArray(other) &&
this.sample.every(item => other.some(another => equals(item, another)));
return this.sample.length === 0 ||
(Array.isArray(other) &&
this.sample.every(item =>
other.some(another => equals(item, another))));
}

toString() {
Expand Down

0 comments on commit 9f34b3a

Please sign in to comment.