From de29af0fb5ef4f3c3e90903cff8fed03b7be9a54 Mon Sep 17 00:00:00 2001 From: Angsar Date: Tue, 3 Feb 2026 11:25:22 +0500 Subject: [PATCH] [all] Fix validation tests, added function isNum --- tests/cell/js-api/api-validation.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/cell/js-api/api-validation.js b/tests/cell/js-api/api-validation.js index cb2279ff83..b53e1fb015 100644 --- a/tests/cell/js-api/api-validation.js +++ b/tests/cell/js-api/api-validation.js @@ -32,6 +32,9 @@ $(function () { var ws = AscTest.JsApi.GetActiveSheet(); + function isNum(value) { + return !isNaN(parseFloat(value)) && isFinite(value); + } // ======= TEST HELPERS ======= // Must exist & each test must start with it