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-07-02 10:03:21 +00:00
|
|
|
const truckFk = 1;
|
2024-06-03 16:39:11 +00:00
|
|
|
const state = 'ON DELIVERY';
|
2024-07-02 10:03:21 +00:00
|
|
|
const result = await models.RoadmapStop.getPalletMatchState(truckFk, state);
|
2024-06-03 16:39:11 +00:00
|
|
|
|
2024-07-02 06:39:42 +00:00
|
|
|
expect(result[0].hasMatchStateCode).toBe(1);
|
2024-06-03 16:39:11 +00:00
|
|
|
});
|
|
|
|
});
|