import { Component, ViewContainerRef } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ToasterHostDirective } from './toaster-host.directive'; @Component({ template: `
`, standalone: true, imports: [ToasterHostDirective] }) class TestComponent {} describe('ToasterHostDirective', () => { let component: TestComponent; let fixture: ComponentFixture; let containerRef: ViewContainerRef; beforeEach(() => { TestBed.configureTestingModule({ imports: [TestComponent, ToasterHostDirective] }); fixture = TestBed.createComponent(TestComponent); component = fixture.componentInstance; }); it('should create an instance', () => { const directive = new ToasterHostDirective(containerRef); expect(directive).toBeTruthy(); }); });