Skip to content

Commit

Permalink
Fix failing build
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurits Rijk committed Jun 1, 2017
1 parent d17270f commit c75cb3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/tuple.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ function tuple(...predicates) {
gen: () => _.map(predicates, gen),
describe: () => [tuple.name, ...describe(predicates)],
explain: function*(value, {via}) {
const f = new Function('values', `return values.length === ${predicates.length}`);
yield* explainPredicate(f, value, {via});
const f = new Function('', `return values => values.length === ${predicates.length}`);
yield* explainPredicate(f(), value, {via});
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion test/tuple.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Test the tuple function', () => {
problems: [
{
path: [],
pred: "function anonymous(values\n/**/) {\nreturn values.length === 3\n}",
pred: 'values => values.length === 3',
val: [1.5, 2.5],
via: ['::point'],
'in': []
Expand Down

0 comments on commit c75cb3f

Please sign in to comment.