Skip to content

Commit

Permalink
feat: do concat in mutation mode (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
vonagam authored and jquense committed Feb 11, 2019
1 parent e53ea8c commit 02be4ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mixed.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ const proto = (SchemaType.prototype = {

// manually add the new tests to ensure
// the deduping logic is consistent
schema.tests.forEach(fn => {
next = next.test(fn.OPTIONS);
next.withMutation(next => {
schema.tests.forEach(fn => {
next.test(fn.OPTIONS);
});
});

return next;
Expand Down

0 comments on commit 02be4ca

Please sign in to comment.