renaming
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
193f97aa41
commit
3b80f6dec9
|
@ -48,8 +48,8 @@ export default class Controller extends Section {
|
|||
return;
|
||||
}
|
||||
|
||||
const lastId = this.$.model.data.length - 1;
|
||||
const lastItem = this.$.model.data[lastId];
|
||||
const lastIndex = this.$.model.data.length - 1;
|
||||
const lastItem = this.$.model.data[lastIndex];
|
||||
this.$.model.insert({
|
||||
itemFk: lastItem.itemFk,
|
||||
name: lastItem.name,
|
||||
|
|
|
@ -55,8 +55,6 @@ describe('fixed price', () => {
|
|||
jest.spyOn(controller.vnApp, 'showSuccess');
|
||||
jest.spyOn(controller.$.model, 'remove');
|
||||
|
||||
// $httpBackend.whenRoute('GET', 'Warehouses').respond();
|
||||
// $httpBackend.when('GET', 'Warehouses').respond();
|
||||
$httpBackend.expectGET('Warehouses').respond();
|
||||
|
||||
controller.removePrice($index);
|
||||
|
|
Loading…
Reference in New Issue