fix: tfront
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
bddc998b86
commit
3bf5f5f86e
|
@ -12,7 +12,7 @@ describe('Component vnRouteIndex', () => {
|
||||||
const $element = angular.element('<vn-route-index></vn-route-index>');
|
const $element = angular.element('<vn-route-index></vn-route-index>');
|
||||||
controller = $componentController('vnRouteIndex', {$element});
|
controller = $componentController('vnRouteIndex', {$element});
|
||||||
controller.$.model = crudModel;
|
controller.$.model = crudModel;
|
||||||
controller.$.model.data = [{id: 1}, {id: 2}, {id: 3}];
|
controller.$.model.data = [{id: 1, checked: true}, {id: 2}, {id: 3}];
|
||||||
}));
|
}));
|
||||||
|
|
||||||
describe('checked() getter', () => {
|
describe('checked() getter', () => {
|
||||||
|
@ -148,4 +148,13 @@ describe('Component vnRouteIndex', () => {
|
||||||
expect(controller.$.model.refresh).toHaveBeenCalledWith();
|
expect(controller.$.model.refresh).toHaveBeenCalledWith();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('markAsServed()', () => {
|
||||||
|
it('should perform a HTTP patch query', () => {
|
||||||
|
const data = {isOk: true};
|
||||||
|
$httpBackend.expect('PATCH', `Routes/1`, data).respond();
|
||||||
|
controller.markAsServed();
|
||||||
|
$httpBackend.flush();
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue