Replaced uses of var with const/let

This commit is contained in:
Steve Gravrock
2022-06-08 19:07:43 -07:00
parent 4af86f5398
commit 135ff20123
73 changed files with 1384 additions and 1391 deletions

View File

@@ -6,8 +6,8 @@ getJasmineRequireObj().JsApiReporter = function(j$) {
* @hideconstructor
*/
function JsApiReporter(options) {
var timer = options.timer || new j$.Timer(),
status = 'loaded';
const timer = options.timer || new j$.Timer();
let status = 'loaded';
this.started = false;
this.finished = false;
@@ -19,7 +19,7 @@ getJasmineRequireObj().JsApiReporter = function(j$) {
timer.start();
};
var executionTime;
let executionTime;
this.jasmineDone = function(runDetails) {
this.finished = true;
@@ -39,7 +39,7 @@ getJasmineRequireObj().JsApiReporter = function(j$) {
return status;
};
var suites = [],
const suites = [],
suites_hash = {};
this.suiteStarted = function(result) {
@@ -81,7 +81,7 @@ getJasmineRequireObj().JsApiReporter = function(j$) {
return suites_hash;
};
var specs = [];
const specs = [];
this.specDone = function(result) {
specs.push(result);