-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Agregar codigo de funcional que sirva como ejemplo para crear test unitarios de los servicios de los módulos.
Ejemplo:
describe('getAllUsers', () => {
test('should return an array of users', () => {
// Act
const users = getAllUsers();
// Assert
expect(users).toBeInstanceOf(Array);
expect(users).toEqual(expect.arrayContaining([
expect.objectContaining({
_id: expect.any(String),
firstName: expect.any(String),
lastName: expect.any(String),
isActive: expect.any(Boolean),
}),
]));
});
});
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request