Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SchroterQuentin committed Apr 2, 2024
1 parent 82e9edc commit d284053
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Bones.UI.Tests/services/testUserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const AccountLoginFactory = new ServiceFactory<Boolean, Boolean>("account-login"
));

export const useTestUsersSync = ComposableFactory.sync<TestUserDetails, TestUserInfos>(testUserServiceFactory);
export const useTestUserTrack = ComposableFactory.track(testUserServiceFactory);
export const useTestUserTrack = ComposableFactory.trackRef(testUserServiceFactory);


export const useLogin = ComposableFactory.custom(AccountLoginFactory.login, () => {
Expand All @@ -34,7 +34,7 @@ export const useLogout = ComposableFactory.custom(AccountLoginFactory.logout, ()
});

export const useTestUser = ComposableFactory.get(testUserServiceFactory, () => {
const { synceds, sync } = useTestUsersSync();
const { sync } = useTestUsersSync();
return (entity) => {
// sync(entity.childs);
}
Expand All @@ -57,4 +57,4 @@ const { entities, fetching, getMany } = useTestUsers();
const { created, create, creating } = useCreateTestUser();
const { updated, update, updating } = useUpdateTestUser();
const { remove, removing } = useRemoveTestUser();
const { synceds, sync } = useTestUsersSync();
const { sync } = useTestUsersSync();

0 comments on commit d284053

Please sign in to comment.