updated clientBillingData email test #1001

This commit is contained in:
Joan Sanchez 2019-01-30 07:18:33 +01:00
parent 7893c784aa
commit 8d2f56a547
1 changed files with 5 additions and 4 deletions

View File

@ -30,11 +30,12 @@ describe('Client', () => {
expect(controller.notifyChanges).toHaveBeenCalledWith(); expect(controller.notifyChanges).toHaveBeenCalledWith();
}); });
}); });
// Excluded due mailer changes #1001
xdescribe('notifyChanges()', () => { describe('notifyChanges()', () => {
it(`should perform a GET query`, () => { it(`should perform a GET query`, () => {
$httpBackend.when('GET', `/mailer/notification/payment-update/101`).respond(true); let params = {clientFk: 101};
$httpBackend.expect('GET', `/mailer/notification/payment-update/101`); $httpBackend.when('POST', `/api/email/payment-update`, params).respond(true);
$httpBackend.expect('POST', `/api/email/payment-update`, params);
controller.notifyChanges(); controller.notifyChanges();
$httpBackend.flush(); $httpBackend.flush();
}); });