Skip to content
Snippets Groups Projects
Commit bf07b73b authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6201 refactoring

parent 7bb27bc7
Branches
Tags
No related merge requests found
...@@ -114,7 +114,7 @@ describe('BescheidenFormService', () => { ...@@ -114,7 +114,7 @@ describe('BescheidenFormService', () => {
expect(service.sendByManual.value).toBeFalsy(); expect(service.sendByManual.value).toBeFalsy();
}); });
it('should not call .next() if current and next values both are true', () => { it('should not emit if value not changed', () => {
service.sendByManual.next(true); service.sendByManual.next(true);
service.sendByManual.next = jest.fn(); service.sendByManual.next = jest.fn();
...@@ -122,7 +122,7 @@ describe('BescheidenFormService', () => { ...@@ -122,7 +122,7 @@ describe('BescheidenFormService', () => {
expect(service.sendByManual.next).not.toHaveBeenCalled(); expect(service.sendByManual.next).not.toHaveBeenCalled();
}); });
it('should call .next() if current and next values differ', () => { it('should emit on value change', () => {
service.sendByManual.next(false); service.sendByManual.next(false);
service.sendByManual.next = jest.fn(); service.sendByManual.next = jest.fn();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment