Skip to content
Snippets Groups Projects
Select Git revision
  • de8c25220319397170679fb4ea6e182ca63445f2
  • main default protected
  • release
  • 0.21.0
  • 0.20.0
  • 0.19.0
  • 0.18.0
  • 0.17.0
  • 0.16.0
  • 0.15.0
  • 0.14.0
  • 0.13.0
  • 0.11.0
  • 0.10.0
  • 0.9.0
  • 0.8.0
  • 0.7.0
  • 0.6.0
  • 0.5.0
  • 0.4.2
  • 0.4.1
  • 0.4.0
  • 0.3.0
23 results

pom.xml

Blame
  • collaboration.service.spec.ts 1.02 KiB
    import { CollaborationService } from './collaboration.service';
    
    describe('CollaborationService', () => {
      let service: CollaborationService;
    
      beforeEach(() => {
        service = new CollaborationService();
      });
    
      describe('is request form visible', () => {
        it('should return value', (done) => {
          service.showRequestForm$.next(false);
    
          service.isRequestFormVisible().subscribe((isVisible: boolean) => {
            expect(isVisible).toBeTruthy();
            done();
          });
    
          service.showRequestForm();
        });
      });
    
      describe('show anfrage formular', () => {
        it('should set "showRequestForm" to true', () => {
          service.showRequestForm$.next(false);
    
          service.showRequestForm();
    
          expect(service.showRequestForm$.value).toBeTruthy();
        });
      });
    
      describe('hide anfrage formular', () => {
        it('should set "showRequestForm" to false', () => {
          service.showRequestForm$.next(true);
    
          service.hideRequestForm();
    
          expect(service.showRequestForm$.value).toBeFalsy();
        });
      });
    });