Tarea #596 /sale/getClaimableFromTicket.js Backend
This commit is contained in:
parent
a86120c055
commit
8f4592f71f
|
@ -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);
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in New Issue