renaming
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2022-03-23 12:26:58 +01:00
parent 193f97aa41
commit 3b80f6dec9
2 changed files with 2 additions and 4 deletions

View File

@ -48,8 +48,8 @@ export default class Controller extends Section {
return; return;
} }
const lastId = this.$.model.data.length - 1; const lastIndex = this.$.model.data.length - 1;
const lastItem = this.$.model.data[lastId]; const lastItem = this.$.model.data[lastIndex];
this.$.model.insert({ this.$.model.insert({
itemFk: lastItem.itemFk, itemFk: lastItem.itemFk,
name: lastItem.name, name: lastItem.name,

View File

@ -55,8 +55,6 @@ describe('fixed price', () => {
jest.spyOn(controller.vnApp, 'showSuccess'); jest.spyOn(controller.vnApp, 'showSuccess');
jest.spyOn(controller.$.model, 'remove'); jest.spyOn(controller.$.model, 'remove');
// $httpBackend.whenRoute('GET', 'Warehouses').respond();
// $httpBackend.when('GET', 'Warehouses').respond();
$httpBackend.expectGET('Warehouses').respond(); $httpBackend.expectGET('Warehouses').respond();
controller.removePrice($index); controller.removePrice($index);