79391223

Date: 2025-01-27 14:59:41
Score: 0.5
Natty:
Report link

You can manually call ngAfterViewInit() in your test to ensure that it executes:

  describe('ngAfterViewInit', () => {
    it('trigger ngAfterViewInit', () => {
      // Arrange

      // Act
      component.ngAfterViewInit();

      // Assert
      expect()...;
    });
  });
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bullsized