var fs = require('fs'),
    testResource = require('../../../test_resource'),
    text2image = require('../../../../lib/image/text2image');

//Disable test because node-canvas , used in text2image is not on dependencies.
//exports['Convert a text to image.'] = function (test) {
//    var dest = testResource.resolveWorkFile('work-text2image.png');
//    text2image(
//        'F',
//        dest,
//        {
//            width: 256,
//            height: 256,
//            fontSize:256,
//            backgroundColor: '#A38',
//            color: '#FFF',
//            fontFile:testResource.resolveMockFile('mock-font.ttf')
//        },
//        function (err) {
//            test.ifError(err);
//            fs.exists(dest, function (exists) {
//                test.ok(exists);
//                test.done();
//            });
//        }
//    )
//};