From d46658de5c3578f50e099b73d60d953c2de1550c Mon Sep 17 00:00:00 2001 From: Saravanamuthu Aka CF Mitrah Date: Fri, 8 Sep 2023 17:06:49 +0530 Subject: [PATCH] Added a testcase to check SerializeJSON() with CFC instance for LDEV-4676 (#2214) * Added a testcase to check SerializeJSON() with CFC instance for LDEV-4676 * Update LDEV-4676.cfc * Update LDEV-4676.cfc --- test/tickets/LDEV-4676.cfc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/tickets/LDEV-4676.cfc diff --git a/test/tickets/LDEV-4676.cfc b/test/tickets/LDEV-4676.cfc new file mode 100644 index 0000000000..a9d2b31cb7 --- /dev/null +++ b/test/tickets/LDEV-4676.cfc @@ -0,0 +1,12 @@ +component extends="org.lucee.cfml.test.LuceeTestCase" { + + function run( testResults , testBox ) { + describe( title = "Testcase for LDEV-4676", body = function() { + it( title = "Checking serializejson with CFC instance", body = function( currentSpec ) { + var query = new Query(); + query.TEST = {}; + expect(serializeJSON(query)).toBe('{"TEST":{},"tagName":"query","params":[],"parts":[],"attributes":{}}'); + }); + }); + } +}