Skip to content

Commit a3a35d5

Browse files
fix: take empty test-cases in task list
1 parent 2815fa5 commit a3a35d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/discoverer/evaluate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class EvaluationTestDiscoverer implements ITestDiscoverer {
7878
directive?: string,
7979
) {
8080
const fn = (name: string, callback: () => void) => {
81-
if (typeof name !== 'string' || typeof callback !== 'function') {
81+
if (typeof name !== 'string') {
8282
return placeholder();
8383
}
8484

src/discoverer/syntax.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class SyntaxTestDiscoverer implements ITestDiscoverer {
104104

105105
traverse(ast, {
106106
enter(node) {
107-
if (node.type !== C.CallExpression || node.arguments.length < 2) {
107+
if (node.type !== C.CallExpression) {
108108
return;
109109
}
110110

0 commit comments

Comments
 (0)