test(services): add DbHandler usage in user.service.ts

This commit includes:
- The usage of `DbHandler.factorize` with sample values
- Testing log trace to monitor the result and fields of factored user data

Issue: #18
Signed-off-by: Mathis <yidhra@tuta.io>
This commit is contained in:
Mathis H (Avnyr) 2024-04-30 16:36:59 +02:00
parent ea3b7aa68b
commit 5163d79056
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -75,6 +75,19 @@ async function getUserFromIdService(id: string): Promise<IDbUser | ISError> {
}
}
/*
DbHandler.factorize({
values: {
id: '011010101',
username: 'avnyr',
age: 42,
is_admin: true
},
actionName: "Testing"
}).then((result)=>{
logger.trace(`\n\n> ${result._valuesArray.join(', ')}\n\n> ${result.totalFields}\n\n> ${result._keysTemplate}\n`)
})*/
//ToTest
/**
* Registers a new user.