Skip to content

Commit 6f89ac5

Browse files
authored
Add message url
Closes GH-9. Reviewed-by: Christian Murphy <[email protected]> Reviewed-by: Titus Wormer <[email protected]>
1 parent 8bb886a commit 6f89ac5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {visit, SKIP} from 'unist-util-visit'
99
import {pointStart, pointEnd} from 'unist-util-position'
1010

1111
const source = 'retext-repeated-words'
12+
const url = 'https://github.com/retextjs/retext-repeated-words#readme'
1213

1314
// List of words that can legally occur twice.
1415
const list = new Set([
@@ -65,7 +66,8 @@ export default function retextRepeatedWords() {
6566
actual: toString(
6667
parent.children.slice(previous.index, index + 1)
6768
),
68-
expected: [value]
69+
expected: [value],
70+
url
6971
}
7072
)
7173
}

test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ test('retextRepeatedWords()', (t) => {
2626
},
2727
fatal: false,
2828
actual: 'it it',
29-
expected: ['it']
29+
expected: ['it'],
30+
url: 'https://github.com/retextjs/retext-repeated-words#readme'
3031
}
3132
],
3233
'should emit messages'

0 commit comments

Comments
 (0)