Skip to content

Commit 78fd5f9

Browse files
author
benholloway
committed
fixed karma and jshint yargs checks
1 parent e62201f commit 78fd5f9

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

lib/test/karma.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var karmaReporterMatchNameRegex = /^karma-(.+)-reporter$/ ;
4242
*/
4343
function getKarmaReporterPluginPath(reporterName) {
4444
if (typeof reporterName !== 'string') {
45-
throw 'Get Karma Reporter Plugin Path: Reporter name is unspecified';
45+
throw 'Reporter name is unspecified';
4646
}
4747

4848
//Default reporter is a dependency of angularity
@@ -61,8 +61,7 @@ function getKarmaReporterPluginPath(reporterName) {
6161
require(reporterPath);
6262
}
6363
catch (ex) {
64-
throw 'Get Karma Reporter Plugin Path: Attempt to require reporter from path ' +
65-
reporterPath + ' with no success.';
64+
throw 'Attempt to require reporter from path ' + reporterPath + ' with no success.';
6665
}
6766
reporterPath = path.normalize(reporterPath);
6867

lib/util/jshint-reporter.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function getJsHintReporter(reporterName) {
3232
// establish a cached copy
3333
if (!resolvedReporter) {
3434
if (typeof reporterName !== 'string') {
35-
throw 'Get JsHint Reporter: Reporter name is unspecified';
35+
throw 'Reporter name is unspecified';
3636
}
3737
else {
3838
var reporterPath;
@@ -58,7 +58,7 @@ function getJsHintReporter(reporterName) {
5858
}
5959
});
6060
if (!resolvedReporter) {
61-
throw 'Get JsHint Reporter: Attempt to require specified reporter with no success.';
61+
throw 'Attempt to require specified reporter with no success.';
6262
}
6363
}
6464
}
@@ -73,7 +73,7 @@ function getJsHintReporter(reporterName) {
7373
return gulpJshint.reporter(resolvedReporter);
7474
}
7575
else {
76-
throw 'Get JsHint Reporter: Given reporter is badly formed';
76+
throw 'Given reporter is badly formed';
7777
}
7878
}
7979

0 commit comments

Comments
 (0)