Skip to content

Commit 9b65017

Browse files
committed
add API-graph test for the new tagged template calls
1 parent 18e6a54 commit 9b65017

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

javascript/ql/test/ApiGraphs/tagged-template/VerifyAssertions.expected

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import ApiGraphs.VerifyAssertions
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const tag = require("tag");
2+
3+
tag.string`string1
4+
${23}` // def=moduleImport("tag").getMember("exports").getMember("string").getParameter(1)
5+
6+
tag.highlight`string2
7+
${23}
8+
morestring
9+
${42}` // def=moduleImport("tag").getMember("exports").getMember("highlight").getParameter(2)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"name": "tagged-template"
3+
}

0 commit comments

Comments
 (0)