Skip to content

Commit

Permalink
fix(packages/sui-mock): fix server methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoruiz committed Jun 27, 2023
1 parent 36a0ad9 commit cac3edc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/sui-mock/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@s-ui/mock",
"version": "1.3.0-beta.3",
"version": "1.3.0-beta.4",
"main": "lib/index.js",
"description": "mock provider",
"types": "lib/index",
Expand Down
8 changes: 4 additions & 4 deletions packages/sui-mock/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ export const getServerMocker = async (handlers = []) => {
const worker = setupServer(...handlers)

return {
start: worker.start,
stop: worker.stop,
listen: worker.start,
close: worker.stop,
start: worker.listen,
stop: worker.close,
listen: worker.listen,
close: worker.close,
use: worker.use,
resetHandlers: worker.resetHandlers,
restoreHandlers: worker.restoreHandlers,
Expand Down

0 comments on commit cac3edc

Please sign in to comment.