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

14 lines
496 B
JavaScript
Raw Normal View History

2018-09-05 11:47:15 +00:00
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');
});
});