diff --git a/tests/Imagecoderinfo.cfc b/tests/Imagecoderinfo.cfc new file mode 100644 index 0000000..8b012b1 --- /dev/null +++ b/tests/Imagecoderinfo.cfc @@ -0,0 +1,14 @@ +component extends="org.lucee.cfml.test.LuceeTestCase" { + function run( testResults , testBox ) { + describe( "testcase for imagecoderinfo()", function() { + it(title = "Checking with imageCoderInfo()", body = function( currentSpec ) { + var img = 'https://raw.githubusercontent.com/lucee/Lucee/6.0/test/functions/images/lucee.png'; + expect(imageCoderInfo(img)).toHaveKey("read"); + expect(imageCoderInfo(img)).toHaveKey("write"); + expect(imageCoderInfo(img).read[1].image).toHaveKey("colormodel"); + expect(imageCoderInfo(img).read[1].image).toHaveKey("metadata"); + expect(imageCoderInfo(img).read[1].image.height).toBe("130"); + }); + }); + } +} \ No newline at end of file