feat: allow first arg in test step to be a function (#17096)

This commit is contained in:
Leo Kettmeir 2023-01-24 15:41:01 +01:00 committed by GitHub
parent fc2e00152b
commit 2027d98a8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 59 additions and 12 deletions

View file

@ -114,7 +114,7 @@ Deno.test(async function invalidStepArguments(t) {
await (t as any).step(() => {});
},
TypeError,
"Expected a test definition or name and function.",
"The step function must have a name.",
);
});