2023-06-01 14:03:55 +00:00
|
|
|
const models = require('vn-loopback/server/server').models;
|
|
|
|
|
|
|
|
describe('department getLeaves()', () => {
|
|
|
|
it('should return the department and the childs containing the search value', async() => {
|
2023-06-02 12:44:56 +00:00
|
|
|
let result = await models.Department.getLeaves(null, 'INFORMATICA');
|
2023-06-01 14:03:55 +00:00
|
|
|
|
2023-06-02 12:44:56 +00:00
|
|
|
expect(result.length).toEqual(1);
|
2023-06-01 14:03:55 +00:00
|
|
|
});
|
|
|
|
});
|