6275-silex-to-salix #1878
|
@ -0,0 +1,10 @@
|
|||
const app = require('vn-loopback/server/server');
|
||||
|
||||
describe('route getExpeditionSummary()', () => {
|
||||
const routeId = 1;
|
||||
fit('should return a summary of expeditions for a route', async() => {
|
||||
const result = await app.models.Route.getExpeditionSummary(routeId);
|
||||
|
||||
expect(result.length).toEqual(3);
|
||||
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
busca un test que te un map en el que es recorre que tots els registres tenen la routeId = 3 així el test es dinamic
Modificat test