12 lines
368 B
JavaScript
12 lines
368 B
JavaScript
const app = require('vn-loopback/server/server');
|
|
|
|
describe('getSectors()', () => {
|
|
it('return list of sectors', async() => {
|
|
let response = await app.models.Collection.getSectors();
|
|
|
|
expect(response.length).toBeGreaterThan(0);
|
|
expect(response[0].id).toEqual(1);
|
|
expect(response[0].description).toEqual('First sector');
|
|
});
|
|
});
|