Skip to content

Commit

Permalink
test: add snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Sep 1, 2019
1 parent ffb3a9e commit 10ff22c
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"code": "const str = \"string\";\nconsole.log(str);",
"state": "disabled",
"location": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 8,
"column": 0
}
},
"doctestOptions": {
"filePath": "input.adoc"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"code": "const str = \"string\";\nconsole.log(str);",
"state": "enabled",
"location": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 8,
"column": 0
}
},
"doctestOptions": {
"filePath": "input.adoc"
}
}
]
19 changes: 19 additions & 0 deletions packages/@power-doctest/asciidoctor/test/snapshots/js/output.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"code": "const str = \"string\";\nconsole.log(str);",
"state": "none",
"location": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 8,
"column": 0
}
},
"doctestOptions": {
"filePath": "input.adoc"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"code": "const str = \"string\";\nconsole.log(str);",
"state": "none",
"location": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 8,
"column": 0
}
},
"metadata": {
"ECMAScript": 2017
},
"doctestOptions": {
"filePath": "input.adoc"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"code": "const str = \"string\";\nconsole.log(str);",
"state": "none",
"location": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 8,
"column": 0
}
},
"doctestOptions": {
"filePath": "input.adoc",
"runMode": "any"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"code": "const str = \"string\";\nconsole.log(str);",
"state": "none",
"location": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 8,
"column": 0
}
},
"doctestOptions": {
"filePath": "input.adoc"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"code": "console.log(\"from source.js\");\n",
"state": "none",
"location": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 6,
"column": 0
}
},
"doctestOptions": {
"filePath": "input.adoc"
}
}
]

0 comments on commit 10ff22c

Please sign in to comment.