13 lines
435 B
JavaScript
13 lines
435 B
JavaScript
|
|
||
|
const {models} = require('vn-loopback/server/server');
|
||
|
|
||
|
describe('roadMapStop getPalletMatchState()', () => {
|
||
|
fit('should return list of pallet with true or false if state is matched', async() => {
|
||
|
const roadmapStopFk = 1;
|
||
|
const state = 'ON DELIVERY';
|
||
|
const result = await models.RoadmapStop.getPalletMatchState(roadmapStopFk, state);
|
||
|
|
||
|
expect(result[0].hasMatchStateCode).toBe('TRUE');
|
||
|
});
|
||
|
});
|