Tarea #596 /sale/getClaimableFromTicket.js Backend

This commit is contained in:
gerard 2018-09-06 16:49:13 +02:00
parent a86120c055
commit 8f4592f71f
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
const app = require(`${servicesDir}/ticket/server/server`);
describe('sale getClaimableFromTicket()', () => {
it('should throw an error if the ticket is not editable', async() => {
let claimableFromTicket = await app.models.Sale.getClaimableFromTicket(16);
expect(claimableFromTicket[0].concept).toBe('Gem of Time');
expect(claimableFromTicket.length).toBe(4);
});
});