This commit is contained in:
parent
59f4b63db7
commit
90b844062d
|
@ -2,7 +2,7 @@ import './index.js';
|
|||
import watcher from 'core/mocks/watcher';
|
||||
import crudModel from 'core/mocks/crud-model';
|
||||
|
||||
describe('Ticket', () => {
|
||||
fdescribe('Ticket', () => {
|
||||
describe('Component vnTicketSale', () => {
|
||||
let controller;
|
||||
let $scope;
|
||||
|
@ -758,5 +758,15 @@ describe('Ticket', () => {
|
|||
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);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue