@labdigital/commercetools-mock 2.43.2 → 2.43.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/ctMock.ts +2 -2
package/package.json
CHANGED
package/src/ctMock.ts
CHANGED
|
@@ -197,11 +197,11 @@ export class CommercetoolsMock {
|
|
|
197
197
|
// allows you to manage msw server yourself and register the handlers needed
|
|
198
198
|
// for commercetools-mock to work.
|
|
199
199
|
public registerHandlers(server: SetupServerApi) {
|
|
200
|
-
const handlers = this.getHandlers(
|
|
200
|
+
const handlers = this.getHandlers();
|
|
201
201
|
server.use(...handlers);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
public getHandlers(
|
|
204
|
+
public getHandlers() {
|
|
205
205
|
const app = this.app;
|
|
206
206
|
return [
|
|
207
207
|
http.post(`${this.options.authHost}/oauth/*`, async ({ request }) => {
|