error: refs 6028 test front quitado
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Javi Gallego 2023-11-23 11:29:53 +01:00
parent f44424dbcf
commit 5b145a57e6
1 changed files with 0 additions and 16 deletions

View File

@ -209,22 +209,6 @@ describe('Route', () => {
}); });
}); });
describe('guessPriority()', () => {
it('should perform a GET query then call both refresh and showSuccess methods', () => {
jest.spyOn(controller.$.model, 'refresh');
jest.spyOn(controller.vnApp, 'showSuccess');
controller.$params = {id: 99};
const url = `Routes/${controller.$params.id}/guessPriority/`;
$httpBackend.expectGET(url).respond('ok');
controller.guessPriority();
$httpBackend.flush();
expect(controller.vnApp.showSuccess).toHaveBeenCalledWith('Order changed');
expect(controller.$.model.refresh).toHaveBeenCalledWith();
});
});
describe('onDrop()', () => { describe('onDrop()', () => {
it('should call the insert method when dragging a ticket number', () => { it('should call the insert method when dragging a ticket number', () => {
jest.spyOn(controller, 'insert'); jest.spyOn(controller, 'insert');