update fixtures and fix backend test

This commit is contained in:
Bernat 2018-07-02 08:18:54 +02:00
parent 6f07ae3c5c
commit 0c33f3296e
4 changed files with 5 additions and 5 deletions

View File

@ -476,9 +476,9 @@ INSERT INTO `vn`.`ticketPackaging`(`id`, `ticketFk`, `packagingFk`, `quantity`,
INSERT INTO `vn`.`sale`(`id`, `itemFk`, `ticketFk`, `concept`, `quantity`, `price`, `discount`, `reserved`, `isPicked`, `created`) INSERT INTO `vn`.`sale`(`id`, `itemFk`, `ticketFk`, `concept`, `quantity`, `price`, `discount`, `reserved`, `isPicked`, `created`)
VALUES VALUES
( 1, 1, 1, 'Gem of Time', 5 , 23.5, 0, 0, 0, CURDATE()), ( 1, 1, 1, 'Gem of Time', 5 , 23.5, 0, 0, 0, CURDATE()),
( 2, 2, 1, 'Gem of Mind', 10 , 1, 0, 0, 0, CURDATE()), ( 2, 2, 1, 'Gem of Mind', 10 , 4.5, 0, 0, 0, CURDATE()),
( 3, 1, 1, 'Gem of Time', 2 , 23.5, 0, 0, 0, CURDATE()), ( 3, 1, 1, 'Gem of Time', 2 , 23.5, 0, 0, 0, CURDATE()),
( 4, 4, 1, 'Mark I', 20 , 5.5, 0, 0, 0, CURDATE()); ( 4, 4, 1, 'Mark I', 20 , 9, 0, 0, 0, CURDATE());
INSERT INTO `vn`.`saleChecked`(`saleFk`, `isChecked`) INSERT INTO `vn`.`saleChecked`(`saleFk`, `isChecked`)
VALUES VALUES

View File

@ -4,7 +4,7 @@ describe('ticket getVAT()', () => {
it('should call the getVAT method and return the response', done => { it('should call the getVAT method and return the response', done => {
app.models.Ticket.getVAT(1) app.models.Ticket.getVAT(1)
.then(response => { .then(response => {
expect(response).toEqual(40.55); expect(response).toEqual(58.75);
done(); done();
}); });
}); });

View File

@ -4,7 +4,7 @@ describe('ticket getTaxes()', () => {
it('should call the getTaxes method', done => { it('should call the getTaxes method', done => {
app.models.Ticket.getTaxes(1) app.models.Ticket.getTaxes(1)
.then(response => { .then(response => {
expect(response[0].tax).toEqual(17.45); expect(response[0].tax).toEqual(20.95);
done(); done();
}); });
}); });

View File

@ -4,7 +4,7 @@ describe('ticket getTotal()', () => {
it('should call the getTotal method and return the response', done => { it('should call the getTotal method and return the response', done => {
app.models.Ticket.getTotal(1) app.models.Ticket.getTotal(1)
.then(response => { .then(response => {
expect(response).toEqual(325.05); expect(response).toEqual(448.25);
done(); done();
}); });
}); });