Skip to content

Commit 45bec58

Browse files
committed
fixed failing tests due to wrong order in dependency array
1 parent e5b312d commit 45bec58

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

di/modules/todos.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ export function registerTodosModule(container: Container) {
7878
.bind(DI_SYMBOLS.IGetTodosForUserController)
7979
.toHigherOrderFunction(getTodosForUserController, [
8080
DI_SYMBOLS.IInstrumentationService,
81-
DI_SYMBOLS.IGetTodosForUserUseCase,
8281
DI_SYMBOLS.IAuthenticationService,
82+
DI_SYMBOLS.IGetTodosForUserUseCase,
8383
]);
8484

8585
container
8686
.bind(DI_SYMBOLS.IToggleTodoController)
8787
.toHigherOrderFunction(toggleTodoController, [
8888
DI_SYMBOLS.IInstrumentationService,
89-
DI_SYMBOLS.IToggleTodoUseCase,
9089
DI_SYMBOLS.IAuthenticationService,
90+
DI_SYMBOLS.IToggleTodoUseCase,
9191
]);
9292
}

src/interface-adapters/controllers/todos/create-todo.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export const createTodoController =
3333
(
3434
instrumentationService: IInstrumentationService,
3535
authenticationService: IAuthenticationService,
36-
createTodoUseCase: ICreateTodoUseCase,
37-
transactionManagerService: ITransactionManagerService
36+
transactionManagerService: ITransactionManagerService,
37+
createTodoUseCase: ICreateTodoUseCase
3838
) =>
3939
async (
4040
input: Partial<z.infer<typeof inputSchema>>,

src/interface-adapters/controllers/todos/get-todos-for-user.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export type IGetTodosForUserController = ReturnType<
2727
export const getTodosForUserController =
2828
(
2929
instrumentationService: IInstrumentationService,
30-
getTodosForUserUseCase: IGetTodosForUserUseCase,
31-
authenticationService: IAuthenticationService
30+
authenticationService: IAuthenticationService,
31+
getTodosForUserUseCase: IGetTodosForUserUseCase
3232
) =>
3333
async (
3434
sessionId: string | undefined

src/interface-adapters/controllers/todos/toggle-todo.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export type IToggleTodoController = ReturnType<typeof toggleTodoController>;
2929
export const toggleTodoController =
3030
(
3131
instrumentationService: IInstrumentationService,
32-
toggleTodoUseCase: IToggleTodoUseCase,
33-
authenticationService: IAuthenticationService
32+
authenticationService: IAuthenticationService,
33+
toggleTodoUseCase: IToggleTodoUseCase
3434
) =>
3535
async (
3636
input: Partial<z.infer<typeof inputSchema>>,

0 commit comments

Comments
 (0)