Skip to content

Commit

Permalink
Remove expected field
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Aug 25, 2022
1 parent c9f099e commit 6c5c05f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions lib/check/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,5 @@ function warn(ctx, reference) {
origin
)
message.url = 'https://github.com/remarkjs/remark-validate-links#readme'

if (suggestion) {
message.expected = [suggestion]
}
}
}
10 changes: 0 additions & 10 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -729,16 +729,6 @@ test('remark-validate-links', async (t) => {
].join('\n'),
'should support a Bitbucket shortcode'
)

const withSuggestions = await remark()
.use(links)
.use(sort)
.process(readSync('suggestions.md'))
t.deepEqual(
withSuggestions.messages.map((message) => message.expected),
[['hello']],
'should support suggestions'
)
;({stderr} = await exec(
[
bin,
Expand Down

0 comments on commit 6c5c05f

Please sign in to comment.