salix/services/loopback/common/methods/claim/specs/getSummary.spec.js

14 lines
496 B
JavaScript

const app = require(`${servicesDir}/claim/server/server`);
describe('claim getSummary()', () => {
it('should return summary with claim, salesClaimed, developments and actions defined ', async() => {
let result = await app.models.Claim.getSummary(1);
let keys = Object.keys(result);
expect(keys).toContain('claim');
expect(keys).toContain('salesClaimed');
expect(keys).toContain('developments');
expect(keys).toContain('actions');
});
});