salix/back/methods/collection/spec/getSectors.spec.js

12 lines
368 B
JavaScript
Raw Normal View History

2020-03-26 18:10:09 +00:00
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);
2020-03-30 12:28:29 +00:00
expect(response[0].id).toEqual(1);
expect(response[0].description).toEqual('First sector');
2020-03-26 18:10:09 +00:00
});
});