slice error
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Javi Gallego 2021-01-22 15:46:03 +01:00
parent 93417e9676
commit 16931693c7
3 changed files with 2 additions and 2 deletions

View File

@ -30,6 +30,7 @@ module.exports = Self => {
require('../methods/client/createAddress')(Self); require('../methods/client/createAddress')(Self);
require('../methods/client/updateAddress')(Self); require('../methods/client/updateAddress')(Self);
require('../methods/client/consumption')(Self); require('../methods/client/consumption')(Self);
require('../methods/client/createReceipt')(Self);
// Validations // Validations

View File

@ -1,6 +1,5 @@
module.exports = function(Self) { module.exports = function(Self) {
require('../methods/receipt/filter')(Self); require('../methods/receipt/filter')(Self);
require('../methods/client/createReceipt')(Self);
Self.validateBinded('amountPaid', isNotZero, { Self.validateBinded('amountPaid', isNotZero, {
message: 'Amount cannot be zero', message: 'Amount cannot be zero',

View File

@ -65,7 +65,7 @@ describe('Client', () => {
controller.$params = {id: 101}; controller.$params = {id: 101};
$httpBackend.expect('POST', `Receipts/101/createReceipt`).respond({id: 1}); $httpBackend.expect('POST', `Clients/101/createReceipt`).respond({id: 1});
controller.responseHandler('accept'); controller.responseHandler('accept');
$httpBackend.flush(); $httpBackend.flush();