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

13 lines
435 B
JavaScript
Raw Normal View History

2024-06-03 16:39:11 +00:00
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');
});
});