var testResource = require('../../../test_resource'),
    precompileJadeFile = require('../../../../lib/compile/precompile_jade_file.js');

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

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


exports['Precompile jade file.'] = function (test) {
    
    var src = testResource.resolveMockFile('mock-jade.jade'),
        dest = testResource.resolveMockFile('work-jade-precompiled.js');
    precompileJadeFile(src, dest, function (err) {
        test.ifError(err);
        test.ok(require(dest)());
        test.done();
    });
};