git.iko.soy/typeable/remark-validate-links
on main help sign in
Add test for external links without repo

Related to GH-44.

commit875d2ad6d0fdbc8370d388475f664b340a2d07fc authorTitus Wormer <tituswormer@gmail.com> dateTue 2 Jul 2019, 17:32 (7 years ago) parent5c2c841
1 file changed+21−1
test/index.js+21−1
test/index.js+21−1
@@ -973,7 +973,27 @@ test('remark-validate-links', function(t) {
973973 ]).then(function(result) {
974974 st.equal(
975975 strip(result.stderr),
976− ['external.md: no issues found'].join('\n'),
976+ 'external.md: no issues found',
977+ 'should report'
978+ )
979+ }, st.error)
980+ })
981+
982+ t.test('should ignore external links (without repo)', function(st) {
983+ st.plan(1)
984+
985+ execa(bin, [
986+ '--no-config',
987+ '--no-ignore',
988+ '--use',
989+ '../..=repository:false',
990+ '--use',
991+ '../sort',
992+ 'external.md'
993+ ]).then(function(result) {
994+ st.equal(
995+ strip(result.stderr),
996+ 'external.md: no issues found',
977997 'should report'
978998 )
979999 }, st.error)