diff options
author | Rebecca Turner <me@re-becca.org> | 2015-07-13 08:41:35 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-07-13 08:47:21 +0300 |
commit | 306f83921a66a6d387c0c51115b98d027f218efc (patch) | |
tree | 9e8a8d813a281f0759f557e067aff7e1ac40b832 | |
parent | 1819e4b996156c1c89addeac8c0cd0a0b58d19f8 (diff) |
test: Include a message as to why we're failing these mocked installs
PR-URL: https://github.com/npm/npm/pull/8922
-rw-r--r-- | test/tap/bitbucket-https-url-with-creds.js | 2 | ||||
-rw-r--r-- | test/tap/bitbucket-shortcut.js | 2 | ||||
-rw-r--r-- | test/tap/gist-short-shortcut.js | 2 | ||||
-rw-r--r-- | test/tap/github-shortcut.js | 2 | ||||
-rw-r--r-- | test/tap/gitlab-shortcut.js | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/test/tap/bitbucket-https-url-with-creds.js b/test/tap/bitbucket-https-url-with-creds.js index 3f39e3be4..4e9d14d7e 100644 --- a/test/tap/bitbucket-https-url-with-creds.js +++ b/test/tap/bitbucket-https-url-with-creds.js @@ -38,7 +38,7 @@ test('bitbucket-https-url-with-creds', function (t) { } else { t.fail('too many attempts to clone') } - cb(new Error()) + cb(new Error('execFile mock fails on purpose')) }) } } diff --git a/test/tap/bitbucket-shortcut.js b/test/tap/bitbucket-shortcut.js index 14b5a1ee0..a9b60f8b5 100644 --- a/test/tap/bitbucket-shortcut.js +++ b/test/tap/bitbucket-shortcut.js @@ -39,7 +39,7 @@ test('bitbucket-shortcut', function (t) { } else { t.fail('too many attempts to clone') } - cb(new Error()) + cb(new Error('execFile mock fails on purpose')) }) } } diff --git a/test/tap/gist-short-shortcut.js b/test/tap/gist-short-shortcut.js index 57f2006b7..58dcf78e8 100644 --- a/test/tap/gist-short-shortcut.js +++ b/test/tap/gist-short-shortcut.js @@ -39,7 +39,7 @@ test('gist-shortcut', function (t) { } else { t.fail('too many attempts to clone') } - cb(new Error()) + cb(new Error('execFile mock fails on purpose')) }) } } diff --git a/test/tap/github-shortcut.js b/test/tap/github-shortcut.js index 2eaa4eb9d..1b01de4cf 100644 --- a/test/tap/github-shortcut.js +++ b/test/tap/github-shortcut.js @@ -39,7 +39,7 @@ test('github-shortcut', function (t) { } else { t.fail('too many attempts to clone') } - cb(new Error()) + cb(new Error('execFile mock fails on purpose')) }) } } diff --git a/test/tap/gitlab-shortcut.js b/test/tap/gitlab-shortcut.js index 2401cecc6..96da268ee 100644 --- a/test/tap/gitlab-shortcut.js +++ b/test/tap/gitlab-shortcut.js @@ -38,7 +38,7 @@ test('gitlab-shortcut', function (t) { } else { t.fail('too many attempts to clone') } - cb(new Error()) + cb(new Error('execFile mock fails on purpose')) }) } } |