Skip to content

Commit

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

Reviewed-by: Christian Murphy <[email protected]>
Reviewed-by: Titus Wormer <[email protected]>
  • Loading branch information
remcohaszing authored Dec 27, 2021
1 parent b994a20 commit 1700cda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {pointStart, pointEnd} from 'unist-util-position'
import {patterns} from './patterns.js'

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

const keys = Object.keys(patterns)

Expand Down Expand Up @@ -45,7 +46,7 @@ export default function retextSimplify(options = {}) {
{start: pointStart(match[0]), end: pointEnd(match[match.length - 1])},
[source, phrase.replace(/\s+/g, '-').toLowerCase()].join(':')
),
{actual, expected}
{actual, expected, url}
)
})
}
Expand Down
3 changes: 2 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ test('retext-simplify', (t) => {
},
fatal: false,
actual: 'utilize',
expected: ['use']
expected: ['use'],
url: 'https://github.com/retextjs/retext-simplify#readme'
}
],
'should emit messages'
Expand Down

0 comments on commit 1700cda

Please sign in to comment.