This commit is contained in:
Bernat 2019-04-16 12:21:58 +02:00
commit 54f65a9227
2 changed files with 4 additions and 3 deletions

View File

@ -161,11 +161,13 @@ describe('claim', () => {
describe('onUpdateGreugeResponse()', () => {
it('should do nothing', () => {
spyOn(controller.$http, 'post');
spyOn(controller.card, 'reload');
spyOn(controller.vnApp, 'showSuccess');
controller.onUpdateGreugeResponse('CANCEL');
expect(controller.$http.post).not.toHaveBeenCalledWith();
expect(controller.card.reload).not.toHaveBeenCalledWith();
expect(controller.vnApp.showSuccess).not.toHaveBeenCalledWith('Greuge inserted!');
});

View File

@ -48,11 +48,10 @@
<span> x {{::price.price | currency: 'EUR': 2}}</span>
</vn-one>
<vn-one>
<vn-input-number
<vn-input-number min="0"
name="quantity"
label="Qty."
field="price.quantity"
min="0"
model="price.quantity"
step="price.grouping"
on-change="$ctrl.validate()">
</vn-input-number>