From cac3edc3cb97013e678b4cc498dee3ddfab5a0a0 Mon Sep 17 00:00:00 2001 From: Kiko Ruiz Lloret Date: Tue, 27 Jun 2023 14:20:07 +0200 Subject: [PATCH] fix(packages/sui-mock): fix server methods --- packages/sui-mock/package.json | 2 +- packages/sui-mock/src/server.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/sui-mock/package.json b/packages/sui-mock/package.json index 65c0c255b..27ef5b1d2 100644 --- a/packages/sui-mock/package.json +++ b/packages/sui-mock/package.json @@ -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", diff --git a/packages/sui-mock/src/server.js b/packages/sui-mock/src/server.js index 392eb640a..02ae87f1e 100644 --- a/packages/sui-mock/src/server.js +++ b/packages/sui-mock/src/server.js @@ -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,