Pendantic terminology

This commit is contained in:
Davis W. Frank 2011-03-07 22:34:58 -08:00
parent 0ef6582f73
commit ab087ef5f8

View File

@ -162,8 +162,8 @@ jasmine.printRunnerResults = function(runner){
var results = runner.results(); var results = runner.results();
var suites = runner.suites(); var suites = runner.suites();
var msg = ''; var msg = '';
msg += suites.length + ' test' + ((suites.length === 1) ? '' : 's') + ', '; msg += suites.length + ' spec' + ((suites.length === 1) ? '' : 's') + ', ';
msg += results.totalCount + ' assertion' + ((results.totalCount === 1) ? '' : 's') + ', '; msg += results.totalCount + ' expectation' + ((results.totalCount === 1) ? '' : 's') + ', ';
msg += results.failedCount + ' failure' + ((results.failedCount === 1) ? '' : 's') + '\n'; msg += results.failedCount + ' failure' + ((results.failedCount === 1) ? '' : 's') + '\n';
return msg; return msg;
}; };