salix/modules/route/back/methods/roadmapStop/specs/getPalletMatchState.spec.js

13 lines
429 B
JavaScript
Raw Normal View History

2024-06-03 16:39:11 +00:00
const {models} = require('vn-loopback/server/server');
describe('roadMapStop getPalletMatchState()', () => {
2024-07-02 06:39:42 +00:00
it('should return list of pallet with true or false if state is matched', async() => {
2024-06-03 16:39:11 +00:00
const roadmapStopFk = 1;
const state = 'ON DELIVERY';
const result = await models.RoadmapStop.getPalletMatchState(roadmapStopFk, state);
2024-07-02 06:39:42 +00:00
expect(result[0].hasMatchStateCode).toBe(1);
2024-06-03 16:39:11 +00:00
});
});