test: deprecation warning

This commit is contained in:
Pavitra Mallick 2025-03-11 11:51:48 +05:30 committed by GitHub
parent 1b7f0e1e95
commit 3c753354bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ describe("JavascriptParser", () => {
testParser.state.expressions.push(expr.name);
return true;
});
testParser.hooks.new.tap("xyz", "JavascriptParserTest", expr => {
testParser.hooks.new.for("xyz").tap("JavascriptParserTest", expr => {
if (!testParser.state.xyz) testParser.state.xyz = [];
testParser.state.xyz.push(testParser.parseString(expr.arguments[0]));
return true;