mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
add API-graph test for the new tagged template calls
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import ApiGraphs.VerifyAssertions
|
||||
9
javascript/ql/test/ApiGraphs/tagged-template/index.js
Normal file
9
javascript/ql/test/ApiGraphs/tagged-template/index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const tag = require("tag");
|
||||
|
||||
tag.string`string1
|
||||
${23}` // def=moduleImport("tag").getMember("exports").getMember("string").getParameter(1)
|
||||
|
||||
tag.highlight`string2
|
||||
${23}
|
||||
morestring
|
||||
${42}` // def=moduleImport("tag").getMember("exports").getMember("highlight").getParameter(2)
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"name": "tagged-template"
|
||||
}
|
||||
Reference in New Issue
Block a user