diff --git a/package.json b/package.json index 6b8767c..767158f 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "xtend": "^4.0.0" }, "devDependencies": { - "execa": "^1.0.0", + "execa": "^2.0.0", "nyc": "^14.0.0", "prettier": "^1.0.0", "remark": "^10.0.0", diff --git a/test/index.js b/test/index.js index 9d853be..2136a6b 100644 --- a/test/index.js +++ b/test/index.js @@ -124,8 +124,7 @@ test('remark-validate-links', function(t) { 'FOOOO', ' 1:1 error No such file or directory', '', - '✖ 1 error', - '' + '✖ 1 error' ].join('\n'), 'should report an error' ) @@ -159,8 +158,7 @@ test('remark-validate-links', function(t) { 'definitions.md', ' 10:1-10:18 warning Link to unknown heading: `world` missing-heading remark-validate-links', '', - '2 messages (✖ 1 error, ⚠ 1 warning)', - '' + '2 messages (✖ 1 error, ⚠ 1 warning)' ].join('\n'), 'should report an error' ) @@ -477,7 +475,7 @@ test('remark-validate-links', function(t) { }, function(err) { clean() - st.ok(/not a git repository/i.test(err), 'should fail') + st.ok(/not a git repository/i.test(err.stderr), 'should fail') } ) @@ -509,7 +507,7 @@ test('remark-validate-links', function(t) { }, function(err) { clean() - st.ok(/Could not find remote origin/.test(err), 'should fail') + st.ok(/Could not find remote origin/.test(err.stderr), 'should fail') } )