update fixtures and fix backend test
This commit is contained in:
parent
6f07ae3c5c
commit
0c33f3296e
|
@ -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`)
|
||||
VALUES
|
||||
( 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()),
|
||||
( 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`)
|
||||
VALUES
|
||||
|
|
|
@ -4,7 +4,7 @@ describe('ticket getVAT()', () => {
|
|||
it('should call the getVAT method and return the response', done => {
|
||||
app.models.Ticket.getVAT(1)
|
||||
.then(response => {
|
||||
expect(response).toEqual(40.55);
|
||||
expect(response).toEqual(58.75);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -4,7 +4,7 @@ describe('ticket getTaxes()', () => {
|
|||
it('should call the getTaxes method', done => {
|
||||
app.models.Ticket.getTaxes(1)
|
||||
.then(response => {
|
||||
expect(response[0].tax).toEqual(17.45);
|
||||
expect(response[0].tax).toEqual(20.95);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -4,7 +4,7 @@ describe('ticket getTotal()', () => {
|
|||
it('should call the getTotal method and return the response', done => {
|
||||
app.models.Ticket.getTotal(1)
|
||||
.then(response => {
|
||||
expect(response).toEqual(325.05);
|
||||
expect(response).toEqual(448.25);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue