20 lines
591 B
JavaScript
20 lines
591 B
JavaScript
const app = require(`${servicesDir}/ticket/server/server`);
|
|
|
|
describe('ticket getVAT()', () => {
|
|
it('should call the getVAT method and return the response', done => {
|
|
app.models.Ticket.getVAT(1)
|
|
.then(response => {
|
|
expect(response).toEqual(58.75);
|
|
done();
|
|
});
|
|
});
|
|
|
|
it(`should call the getVAT method and return zero if doesn't have lines`, done => {
|
|
app.models.Ticket.getVAT(13)
|
|
.then(response => {
|
|
expect(response).toEqual(0);
|
|
done();
|
|
});
|
|
});
|
|
});
|