diff --git a/factory.js b/factory.js index cc93bd8..951e766 100644 --- a/factory.js +++ b/factory.js @@ -23,6 +23,8 @@ import {pointStart, pointEnd} from 'unist-util-position' const own = {}.hasOwnProperty +const url = 'https://github.com/retextjs/retext-profanities#readme' + /** * @param {Config} config */ @@ -80,7 +82,7 @@ export function factory(config) { }, [source, phrase.replace(/\W+/g, '-')].join(':') ), - {profanitySeverity, actual, expected: []} + {profanitySeverity, actual, expected: [], url} ) } } diff --git a/test.js b/test.js index d84c481..d35fa37 100644 --- a/test.js +++ b/test.js @@ -28,7 +28,8 @@ test('profanities', (t) => { fatal: false, profanitySeverity: 2, actual: 'Shit', - expected: [] + expected: [], + url: 'https://github.com/retextjs/retext-profanities#readme' } ], 'should warn'