From 3c8d2a5219471ac4e67aac94ce20b52dd8346e1e Mon Sep 17 00:00:00 2001 From: Brenden Date: Mon, 9 Dec 2024 20:40:00 -0800 Subject: [PATCH] fixed spelling, added length bound --- src/server/test/web/obviusTest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/test/web/obviusTest.js b/src/server/test/web/obviusTest.js index 410a32de9..4566af7e2 100644 --- a/src/server/test/web/obviusTest.js +++ b/src/server/test/web/obviusTest.js @@ -257,10 +257,10 @@ mocha.describe('Obvius API', () => { //both arrays should be contain the same sequence of values - for (let i = 0; i < 28; i++) { + for (let i = 0; i < expMeterNames.length; i++) { if (expMeterNames[i] != meterNames[i]) { expectedNamesAreEqual = false; - allErrorMessagesNames += "Meter failed name comparison, Expeceted: " + expMeterNames[i] + " Actual: " + meterNames[i] + "\n"; + allErrorMessagesNames += "Meter failed name comparison, Expected: " + expMeterNames[i] + " Actual: " + meterNames[i] + "\n"; } if (expMeterIDs[i] != meterIDs[i]) {