foundation-testing.fixture
Home > @genesislcap/foundation-testing > Fixture
Fixture interface
Unit test fixture.
Signature:
export interface Fixture<TElement = HTMLElement>
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
document | Document | The document the fixture is running in. | |
element | TElement | The first element in the Fixture.view. | |
parent | HTMLElement | The parent element that the view was appended to. | |
template | ViewTemplate | The template the fixture was created from. | |
view | HTMLView | The view that was created from the fixture's template. |
Methods
Method | Description |
---|---|
connect() | Adds the Fixture.parent to the DOM, causing the connect lifecycle to begin. |
disconnect() | Removes the Fixture.parent from the DOM, causing the disconnect lifecycle to begin. |