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

11 lines
372 B
JavaScript
Raw Permalink Normal View History

2023-06-01 14:03:55 +00:00
const models = require('vn-loopback/server/server').models;
describe('department getLeaves()', () => {
2024-06-14 06:39:57 +00:00
const ctx = beforeAll.getCtx();
2023-06-01 14:03:55 +00:00
it('should return the department and the childs containing the search value', async() => {
2023-06-20 07:15:37 +00:00
let result = await models.Department.getLeaves(ctx, null, 'INFORMATICA');
2023-06-01 14:03:55 +00:00
expect(result.length).toEqual(1);
2023-06-01 14:03:55 +00:00
});
});