Skip to content

Commit

Permalink
chore: add test package before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
onedionys committed Mar 8, 2024
1 parent 3f1cc6c commit 456d0c6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
@@ -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
});
});

0 comments on commit 456d0c6

Please sign in to comment.