Skip to content

Commit

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

Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
  • Loading branch information
remcohaszing authored Dec 20, 2021
1 parent b1999a3 commit 4452ddc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {quotation} from 'quotation'
import {schema} from './schema.js'

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

const list = Object.keys(schema)

Expand All @@ -33,7 +34,7 @@ export default function retextDiacritics() {
{start: pointStart(match[0]), end: pointEnd(match[match.length - 1])},
[source, phrase.replace(/\s+/g, '-').toLowerCase()].join(':')
),
{actual, expected: [expected]}
{actual, expected: [expected], url}
)
})
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"rimraf": "^3.0.0",
"tape": "^5.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"typescript": "~4.4.0",
"unist-builder": "^3.0.0",
"xo": "^0.44.0"
},
Expand Down
3 changes: 2 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ test('retext-diacritics', (t) => {
},
fatal: false,
actual: 'Beyonce',
expected: ['Beyoncé']
expected: ['Beyoncé'],
url: 'https://github.com/retext/retext-diacritics#readme'
},
'should emit a message'
)
Expand Down

0 comments on commit 4452ddc

Please sign in to comment.