Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
fafbfed189
|
@ -12,6 +12,7 @@ module.exports = Self => {
|
||||||
});
|
});
|
||||||
|
|
||||||
Self.post = async ctx => {
|
Self.post = async ctx => {
|
||||||
|
console.log(ctx.req.body);
|
||||||
return ctx.req.body;
|
return ctx.req.body;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -68,7 +68,7 @@ class Controller extends Dialog {
|
||||||
this.receipt.description.push(accountingType.receiptDescription);
|
this.receipt.description.push(accountingType.receiptDescription);
|
||||||
if (this.originalDescription)
|
if (this.originalDescription)
|
||||||
this.receipt.description.push(this.originalDescription);
|
this.receipt.description.push(this.originalDescription);
|
||||||
this.receipt.description.join(', ');
|
this.receipt.description = this.receipt.description.join(', ');
|
||||||
}
|
}
|
||||||
this.maxAmount = accountingType && accountingType.maxAmount;
|
this.maxAmount = accountingType && accountingType.maxAmount;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ describe('Client', () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
expect(controller.receipt.description.join(',')).toEqual('Cash,Albaran: 1, 2');
|
expect(controller.receipt.description).toEqual('Cash, Albaran: 1, 2');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue