Skip to content

Commit

Permalink
Added a testcase to check SerializeJSON() with CFC instance for LDEV-…
Browse files Browse the repository at this point in the history
…4676 (#2214)

* Added a testcase to check SerializeJSON() with CFC instance for LDEV-4676

* Update LDEV-4676.cfc

* Update LDEV-4676.cfc
  • Loading branch information
cfmitrah authored Sep 8, 2023
1 parent 3e21b4d commit d46658d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/tickets/LDEV-4676.cfc
Original file line number Diff line number Diff line change
@@ -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":{}}');
});
});
}
}

0 comments on commit d46658d

Please sign in to comment.