style: satisfy the eslint lane on the plan surfaces
Drop the assertions eslint proved unnecessary (getByRole gains the element type parameter instead, keeping tsc satisfied), declare the injected setPlanMode as a function property (the seat face is this-free), and narrow the fixture's command args without String()'s object stringification arm.
This commit is contained in:
@@ -23,7 +23,7 @@ export interface PlanModeControlInjected {
|
||||
* @param active - whether plan mode should be active from the next boundary.
|
||||
* @returns null on admitted execution; a user-visible failure line otherwise.
|
||||
*/
|
||||
setPlanMode(active: boolean): Promise<string | null>
|
||||
setPlanMode: (active: boolean) => Promise<string | null>
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user