diff --git a/src/utils/ast.ts b/src/utils/ast.ts index 58c9002..d01d269 100644 --- a/src/utils/ast.ts +++ b/src/utils/ast.ts @@ -123,7 +123,7 @@ export type ExpectType = 'poll' | 'soft' | 'standalone'; export function getExpectType( node: ESTree.CallExpression ): ExpectType | undefined { - if (isIdentifier(node.callee, /^expect|Expect$/)) { + if (isIdentifier(node.callee, /(^expect|Expect)$/)) { return 'standalone'; }