2020-03-30 12:28:29 +00:00
|
|
|
const app = require('vn-loopback/server/server');
|
2020-03-26 18:10:09 +00:00
|
|
|
describe('collectionFaults()', () => {
|
|
|
|
it('return shelving afected', async() => {
|
2020-03-30 12:28:29 +00:00
|
|
|
let response = await app.models.Collection.collectionFaults('UXN', 0, 1);
|
2020-03-26 18:10:09 +00:00
|
|
|
|
2020-03-30 12:28:29 +00:00
|
|
|
expect(response.length).toBeGreaterThan(0);
|
|
|
|
expect(response[0][0].shelvingFk).toEqual('UXN');
|
2020-03-26 18:10:09 +00:00
|
|
|
});
|
|
|
|
});
|