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
+4 -4
View File
@@ -1,5 +1,5 @@
getJasmineRequireObj().toThrow = function(j$) {
var getErrorMsg = j$.formatErrorMsg(
const getErrorMsg = j$.formatErrorMsg(
'<toThrow>',
'expect(function() {<expectation>}).toThrow()'
);
@@ -17,9 +17,9 @@ getJasmineRequireObj().toThrow = function(j$) {
function toThrow(matchersUtil) {
return {
compare: function(actual, expected) {
var result = { pass: false },
threw = false,
thrown;
const result = { pass: false };
let threw = false;
let thrown;
if (typeof actual != 'function') {
throw new Error(getErrorMsg('Actual is not a Function'));