Skip to content

Commit

Permalink
Add message url
Browse files Browse the repository at this point in the history
Closes GH-8.

Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
  • Loading branch information
remcohaszing authored Dec 27, 2021
1 parent e301463 commit 96efc6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const sentence = convert('SentenceNode')
const whiteSpace = convert('WhiteSpaceNode')

const source = 'retext-sentence-spacing'
const url = 'https://github.com/retextjs/retext-sentence-spacing#readme'

/**
* Plugin to check spacing between sentences.
Expand Down Expand Up @@ -114,7 +115,8 @@ export default function retextSentenceSpacing(options = {}) {
),
{
actual,
expected: [preferred === 0 ? '\n' : preferred === 1 ? ' ' : ' ']
expected: [preferred === 0 ? '\n' : preferred === 1 ? ' ' : ' '],
url
}
)
}
Expand Down
3 changes: 2 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ test('retext-sentence-spacing', (t) => {
},
fatal: false,
actual: ' ',
expected: [' ']
expected: [' '],
url: 'https://github.com/retextjs/retext-sentence-spacing#readme'
}
],
'should emit messages'
Expand Down

0 comments on commit 96efc6c

Please sign in to comment.