/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    resizeImage = require('../../../../lib/image/resize_image.js');

exports.setUp = function (done) {
    done();
};

exports.tearDown = function (done) {
    done();
};


exports['Resize image.'] = function (test) {
    resizeImage(
        testResource.resolveMockFile('mock-img.png'),
        {width: 12, height: 12},
        testResource.resolveWorkFile('work-resized-img.png'),
        function (err) {
            test.ifError(err);
            test.done();
        }
    );
};