mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
Turn var into const or let
This commit is contained in:
committed by
Kevin Barabash
parent
9b565a6375
commit
bd9db332d2
@@ -4,15 +4,15 @@
|
||||
/* global it: false */
|
||||
/* global describe: false */
|
||||
|
||||
var parseTree = require("../src/parseTree");
|
||||
var Settings = require("../src/Settings");
|
||||
const parseTree = require("../src/parseTree");
|
||||
const Settings = require("../src/Settings");
|
||||
|
||||
var defaultSettings = new Settings({});
|
||||
const defaultSettings = new Settings({});
|
||||
|
||||
beforeEach(function() {
|
||||
jasmine.addMatchers({
|
||||
toFailWithParseError: function(util, customEqualityTesters) {
|
||||
var prefix = "KaTeX parse error: ";
|
||||
const prefix = "KaTeX parse error: ";
|
||||
return {
|
||||
compare: function(actual, expected) {
|
||||
try {
|
||||
@@ -28,8 +28,8 @@ beforeEach(function() {
|
||||
message: "'" + actual + "' parsed with error",
|
||||
};
|
||||
}
|
||||
var msg = e.message;
|
||||
var exp = prefix + expected;
|
||||
const msg = e.message;
|
||||
const exp = prefix + expected;
|
||||
if (msg === exp) {
|
||||
return {
|
||||
pass: true,
|
||||
|
Reference in New Issue
Block a user