Skip to content

Commit

Permalink
fix: remove unused argument from getHandlers()
Browse files Browse the repository at this point in the history
  • Loading branch information
mvantellingen committed Jan 20, 2025
1 parent 994fa7c commit 9eccae3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-frogs-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@labdigital/commercetools-mock": patch
---

Remove unused argument from `getHandlers()`
4 changes: 2 additions & 2 deletions src/ctMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ export class CommercetoolsMock {
// allows you to manage msw server yourself and register the handlers needed
// for commercetools-mock to work.
public registerHandlers(server: SetupServerApi) {
const handlers = this.getHandlers(server);
const handlers = this.getHandlers();
server.use(...handlers);
}

public getHandlers(server: SetupServerApi) {
public getHandlers() {
const app = this.app;
return [
http.post(`${this.options.authHost}/oauth/*`, async ({ request }) => {
Expand Down

0 comments on commit 9eccae3

Please sign in to comment.