front test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-03-25 15:17:43 +01:00
parent 9b4546edad
commit f06c7d3d47
1 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ describe('Component vnTicketIndex', () => {
controller.$.balanceCreateDialog = {show: () => {}};
jest.spyOn(controller.$.balanceCreateDialog, 'show').mockReturnThis();
controller.$.tickets = tickets;
controller.$.model = {data: tickets};
controller.$.balanceCreateDialog.amountPaid = 0;
controller.openBalanceDialog();
@ -101,7 +101,7 @@ describe('Component vnTicketIndex', () => {
describe('checked()', () => {
it('should return an array of checked tickets', () => {
controller.$.tickets = tickets;
controller.$.model = {data: tickets};
const result = controller.checked;
const firstRow = result[0];
const secondRow = result[1];
@ -114,7 +114,7 @@ describe('Component vnTicketIndex', () => {
describe('totalChecked()', () => {
it('should return the total number of checked tickets', () => {
controller.$.tickets = tickets;
controller.$.model = {data: tickets};
const result = controller.checked;
expect(result.length).toEqual(2);