Skip to content

Commit

Permalink
✅ Fix async validation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
daaang committed Nov 8, 2017
1 parent aaaaf54 commit aaaa5f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/process-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ let attemptSetUp = function(internal, payload) {
};

runAndWait(function() {
internal.setUp(payload);
return internal.setUp(payload);
}).then(function() {
return awaitOrCollectAllErrors(internal.children);
}, function(error) {
Expand Down
2 changes: 1 addition & 1 deletion spec/dev/process-tree.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ describe("a processTree with asynchronous validation", () => {
}));
});

xit("stores the child", () => {
it("stores the child", () => {
expect(spy.tree.c.length).to.equal(1);
});
});

0 comments on commit aaaa5f5

Please sign in to comment.