salix/modules/worker/back/methods/department/specs/getLeaves.spec.js

10 lines
331 B
JavaScript
Raw Normal View History

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() => {
let result = await models.Department.getLeaves(null, 'INFORMATICA');
2023-06-01 14:03:55 +00:00
expect(result.length).toEqual(1);
2023-06-01 14:03:55 +00:00
});
});