refs #5327 add frontTest
gitea/salix/pipeline/head Build queued... Details

This commit is contained in:
Vicent Llopis 2023-05-11 10:17:41 +02:00
parent 59f4b63db7
commit 90b844062d
1 changed files with 11 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import './index.js';
import watcher from 'core/mocks/watcher'; import watcher from 'core/mocks/watcher';
import crudModel from 'core/mocks/crud-model'; import crudModel from 'core/mocks/crud-model';
describe('Ticket', () => { fdescribe('Ticket', () => {
describe('Component vnTicketSale', () => { describe('Component vnTicketSale', () => {
let controller; let controller;
let $scope; let $scope;
@ -758,5 +758,15 @@ describe('Ticket', () => {
expect(controller.$.editDiscount.hide).toHaveBeenCalledWith(); expect(controller.$.editDiscount.hide).toHaveBeenCalledWith();
}); });
}); });
describe('sortBy()', () => {
it('should set reverse and propertyName properties', () => {
const propertyName = 'id';
controller.sortBy(propertyName);
expect(controller.propertyName).toEqual(propertyName);
expect(controller.reverse).toEqual(false);
});
});
}); });
}); });