diff --git a/test/tickets/LDEV4665.cfc b/test/tickets/LDEV4665.cfc index 787d11befa..29c48b277a 100644 --- a/test/tickets/LDEV4665.cfc +++ b/test/tickets/LDEV4665.cfc @@ -1,4 +1,4 @@ -component extends="org.lucee.cfml.test.LuceeTestCase" skip=true { +component extends="org.lucee.cfml.test.LuceeTestCase" skip="true" { function beforeAll(){ variables.qry = queryNew( @@ -26,6 +26,18 @@ component extends="org.lucee.cfml.test.LuceeTestCase" skip=true { expect( test[3] ).toBe( qry.id[3] ); expect( test[3].len() ).toBe( qry.id[3].len() ) }); + + it(title = "Checking queryMap() function", body = function( currentSpec ) { + var test = queryMap(qry,(row) => row).columnData("id"); + expect( test[3] ).toBe( qry.id[3] ); + expect( test[3].len() ).toBe( qry.id[3].len() ) + }); + + it(title = "Checking queryMap() with member function", body = function( currentSpec ) { + var test = qry.map((row) => row).columnData("id"); + expect( test[3] ).toBe( qry.id[3] ); + expect( test[3].len() ).toBe( qry.id[3].len() ) + }); }); } }