Skip to content

Commit

Permalink
Improve the testcase for toScript.cfc() function
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Mar 21, 2024
1 parent 9c58058 commit 48f3d80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functions/toScript.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 48f3d80

Please sign in to comment.