10 lines
331 B
JavaScript
10 lines
331 B
JavaScript
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');
|
|
|
|
expect(result.length).toEqual(1);
|
|
});
|
|
});
|