diff --git a/multimedia/image/image_js_standard/imageRGBA/src/main/js/test/RGBA.test.js b/multimedia/image/image_js_standard/imageRGBA/src/main/js/test/RGBA.test.js index 777a6143a180f12950344b38f92ef5f1dcd190e6..dc96fee00d002734c97a7cc087676ab8f651c44f 100644 --- a/multimedia/image/image_js_standard/imageRGBA/src/main/js/test/RGBA.test.js +++ b/multimedia/image/image_js_standard/imageRGBA/src/main/js/test/RGBA.test.js @@ -332,15 +332,15 @@ describe('Image', function () { const Color = new ArrayBuffer(96); let opts = { editable: true, pixelFormat: 0, size: { height: -1, width: 8 } } image.createPixelMap(Color, opts, (err, pixelmap) => { - if (err != undefined) { + if (err) { console.info('RGBA_011 err: ' + err); - expect(false).assertTrue(); + expect(pixelmap == undefined).assertTrue(); + console.info('RGBA_011 pass'); + done(); + } else { + expect(true).assertTrue(); done(); - return; } - expect(pixelmap == undefined).assertTrue(); - console.info('RGBA_011 pass'); - done(); }) }) @@ -359,15 +359,15 @@ describe('Image', function () { const Color = new ArrayBuffer(96); let opts = { editable: true, pixelFormat: 1, size: { height: 6, width: -1 } } image.createPixelMap(Color, opts, (err, pixelmap) => { - if (err != undefined) { + if (err) { console.info('RGBA_012 err: ' + err); - expect(false).assertTrue(); + expect(pixelmap == undefined).assertTrue(); + console.info('RGBA_012 pass'); + done(); + } else { + expect(true).assertTrue(); done(); - return; } - expect(pixelmap == undefined).assertTrue(); - console.info('RGBA_012 pass'); - done(); }) })