Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
Return next from browser middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
ganemone authored and fusion-bot[bot] committed Dec 1, 2017
1 parent 0625e43 commit 5f44e72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/__browser__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ tape('Browser plugin', t => {
};

const middleware = plugin();
middleware(ctx, next);

const result = middleware(ctx, next);
t.ok(result instanceof Promise, 'returns next');
t.end();
});
4 changes: 2 additions & 2 deletions src/__tests__/__node__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ tape('Server plugin', t => {
};

const middleware = plugin();
middleware(ctx, next);

const result = middleware(ctx, next);
t.ok(result instanceof Promise, 'returns next');
t.end();
});
2 changes: 1 addition & 1 deletion src/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export default () => (ctx, next) => {
);
}

next();
return next();
};

0 comments on commit 5f44e72

Please sign in to comment.