import { Component } from "@angular/core";
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { SamPopoverComponent } from "./popover";
import { AbstractGrid } from "../aria/abstract-grid/abstract-grid";
@Component({
template: `
`,
standalone: false,
})
class HostComponent {}
describe("The Sam Popover component", () => {
let fixture: ComponentFixture;
let popover: SamPopoverComponent;
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [HostComponent, SamPopoverComponent],
});
fixture = TestBed.createComponent(HostComponent);
fixture.detectChanges();
popover = fixture.debugElement.children[0].componentInstance;
});
it("should build an AbstractGrid over its host element", () => {
expect(popover.grid).toBeInstanceOf(AbstractGrid);
});
});