Skip to content

Commit

Permalink
Refactor comment-style
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed May 21, 2019
1 parent a03af99 commit d363dd9
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ var reverseTypes = [
'text'
]

/* Tests. */
test('unist-util-visit', function(t) {
t.throws(
function() {
Expand Down Expand Up @@ -220,7 +219,7 @@ test('unist-util-visit', function(t) {
count++

if (n === SKIP) {
n++ /* The one node inside it. */
n++ // The one node inside it.
return visit.SKIP
}
}
Expand Down Expand Up @@ -249,7 +248,7 @@ test('unist-util-visit', function(t) {
count++

if (n === SKIP_REVERSE) {
n++ /* The one node inside it. */
n++ // The one node inside it.
return visit.SKIP
}
}
Expand All @@ -269,7 +268,7 @@ test('unist-util-visit', function(t) {
'text',
'strong',
'text',
'text' /* Again. */,
'text', // Again.
'emphasis',
'text',
'text',
Expand All @@ -295,7 +294,7 @@ test('unist-util-visit', function(t) {

if (again === false && node.type === 'strong') {
again = true
return 0 /* Start over. */
return 0 // Start over.
}
}
}
Expand All @@ -313,7 +312,7 @@ test('unist-util-visit', function(t) {
'emphasis',
'text',
'text',
'strong' /* Skip here. */,
'strong', // Skip here
'text'
]

Expand All @@ -332,7 +331,7 @@ test('unist-util-visit', function(t) {

if (again === false && node.type === 'strong') {
again = true
return parent.children.length /* Skip siblings. */
return parent.children.length // Skip siblings.
}
}
}
Expand All @@ -352,7 +351,7 @@ test('unist-util-visit', function(t) {
'text',
'strong',
'text',
'inlineCode' /* Skip to here. */,
'inlineCode', // Skip to here.
'text'
]

Expand All @@ -371,7 +370,7 @@ test('unist-util-visit', function(t) {

if (again === false && node.type === 'strong') {
again = true
return index + 2 /* Skip to `inlineCode`. */
return index + 2 // Skip to `inlineCode`.
}
}
}
Expand Down

0 comments on commit d363dd9

Please sign in to comment.