From 48f3d800edb76195487b1c397939b995508f02b2 Mon Sep 17 00:00:00 2001 From: CF Mitrah Date: Thu, 21 Mar 2024 21:20:06 +0530 Subject: [PATCH] Improve the testcase for toScript.cfc() function --- test/functions/toScript.cfc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functions/toScript.cfc b/test/functions/toScript.cfc index 05d9f9e53e..2770f29589 100644 --- a/test/functions/toScript.cfc +++ b/test/functions/toScript.cfc @@ -14,8 +14,8 @@ component extends="org.lucee.cfml.test.LuceeTestCase" { Struct = {}; Struct[1] = "lucee"; jsVar = serializeJson(Struct); - res = ToScript(Array, "jsVar"); - expect(res).toBe('jsVar=new Array();jsVar[0]="lucee";'); + res = ToScript(Struct, "jsVar"); + expect(res).toBe('jsVar=new Object();jsVar["1"]="lucee";'); }); it( title = "checking toScript function for query", body = function( currentSpec ) {