testeranto
Version:
the AI powered BDD test framework for typescript projects
21 lines (18 loc) • 498 B
text/typescript
import { BaseThen } from "../abstractBase";
import { Ibdd_in_any } from "../../CoreTypes";
export class MockThen<I extends Ibdd_in_any> extends BaseThen<I> {
constructor(
name: string,
thenCB: (val: I["iselection"]) => Promise<I["then"]>
) {
super(name, thenCB);
}
async butThen(
store: I["istore"],
thenCB: (s: I["iselection"]) => Promise<I["isubject"]>,
testResourceConfiguration: any,
pm: any
): Promise<I["iselection"]> {
return thenCB(store);
}
}