@skyux/modals
Version:
This library was generated with [Nx](https://nx.dev).
29 lines (28 loc) • 874 B
TypeScript
import { SkyConfirmCloseEventArgs, SkyConfirmConfig } from '@skyux/modals';
/**
* A controller to be injected into tests, which mocks the confirm service
* and handles interactions with confirm dialogs.
*/
export declare abstract class SkyConfirmTestingController {
/**
* Closes the confirm dialog with the "cancel" action.
*/
abstract cancel(): void;
/**
* Throws if a confirm dialog is open.
*/
abstract expectNone(): void;
/**
* Throws if the open confirm dialog does not match the provided configuration.
* @param config
*/
abstract expectOpen(config: SkyConfirmConfig): void;
/**
* Closes the confirm dialog with the provided action.
*/
abstract close(args: SkyConfirmCloseEventArgs): void;
/**
* Closes the confirm dialog with the "ok" action.
*/
abstract ok(): void;
}