Closed kdeldycke closed 3 years ago
Can you add a fixture so this is tested?
https://github.com/sindresorhus/awesome-lint/blob/master/test/fixtures/list-item/0.md
You're right @sindresorhus and I'm sorry, I was a little lazy on that one. Just added a fixture to catch this issue.
Without the fix:
❯ npm test
> awesome-lint@0.16.0 test
> xo && ava
(...)
1 test failed
rules › list-item › list-item - valid
/Users/kde/awesome-lint/test/rules/list-item.js:13
12: const messages = await lint({config, filename: 'test/fixtures/list-item/0.md'});
13: t.deepEqual(messages, []);
14: });
Difference:
[
- Object { … },
]
test/rules/list-item.js:13:4
processTicksAndRejections (node:internal/process/task_queues:93:5)
npm ERR! code 1
npm ERR! path /Users/kde/awesome-lint
npm ERR! command failed
npm ERR! command sh -c xo && ava
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/kde/.npm/_logs/2020-10-26T10_03_55_156Z-debug.log
After the fix:
❯ npm test
> awesome-lint@0.16.0 test
> xo && ava
(...)
65 tests passed
Thanks :)
Thanks @sindresorhus for the merge! :)
Without this fix, an item of the form:
gets reported under the following linting error:
See for instance: https://github.com/kdeldycke/awesome-management/runs/1291575555?check_suite_focus=true