From 456d0c6049732ea171377cd49e60c6d785f23642 Mon Sep 17 00:00:00 2001 From: onedionys Date: Fri, 8 Mar 2024 12:47:23 +0700 Subject: [PATCH] chore: add test package before publishing --- test/index.test.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/index.test.js diff --git a/test/index.test.js b/test/index.test.js new file mode 100644 index 0000000..200be1d --- /dev/null +++ b/test/index.test.js @@ -0,0 +1,13 @@ +// test/imageCroppingTool.test.js + +const assert = require('assert'); +const { cropImage } = require('../src/imageCroppingTool'); + +describe('Image Cropping Tool', function() { + it('should crop the image correctly', async function() { + const imagePath = 'path/to/original/image.jpg'; + const croppedImagePath = await cropImage(imagePath, 10, 20, 100, 150); + assert.strictEqual(typeof croppedImagePath, 'string'); + // Add more assertions as needed + }); +});