diff --git a/client/client/src/billing-data/billing-data.spec.js b/client/client/src/billing-data/billing-data.spec.js index b527b19f3b..80d1650a9a 100644 --- a/client/client/src/billing-data/billing-data.spec.js +++ b/client/client/src/billing-data/billing-data.spec.js @@ -36,6 +36,17 @@ describe('Client', () => { }); }); + describe('onSubmit()', () => { + it(`should call notifyChanges() if there are changes on payMethod data`, () => { + spyOn(controller, 'notifyChanges'); + controller.client.payMethodFk = 5; + controller.onSubmit(); + + expect(controller.hasPaymethodChanged()).toBeTruthy(); + expect(controller.notifyChanges).toHaveBeenCalledWith(); + }); + }); + describe('hasPaymethodChanged()', () => { it(`should call hasPaymethodChanged() and return true if there are changes on payMethod data`, () => { controller.client.payMethodFk = 5; @@ -50,15 +61,6 @@ describe('Client', () => { }); }); - describe('onSubmit()', () => { - it(`should call notifyChanges() if there are changes on payMethod data`, () => { - spyOn(controller, 'notifyChanges'); - controller.client.payMethodFk = 5; - controller.onSubmit(); - expect(controller.hasPaymethodChanged()).toBeTruthy(); - expect(controller.notifyChanges).toHaveBeenCalledWith(); - }); - }); }); });