Skip to content

Commit c4e86be

Browse files
committed
Simplify return types for passes
1 parent 0c7580a commit c4e86be

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/testing-utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,7 @@ export class TestEnv<
281281
return this.fn(this.state as unknown as ActionState<Fs>, ...this.args);
282282
}
283283

284-
public passes<T>(
285-
assertion: (makeCall: () => R) => T | Promise<T>,
286-
): T | Promise<T> {
284+
public passes<T>(assertion: (makeCall: () => R) => Promise<T>): Promise<T> {
287285
return assertion(() => {
288286
const result = this.call();
289287
return result;

0 commit comments

Comments
 (0)