/**
 * @overview nodeunit test case.
 * @author "{{authorModule}}"
 */

var testResource = require('{{testResourcePath}}'),
    mockInjector = require('{{mockInjectorPath}}'),
    fs = require('fs'),
    {{moduleName}} = require('{{modulePath}}');

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

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

exports['Create new file config.'] = function (test) {
    var f = {{moduleName}},
        existsSync = fs.existsSync;
    {{#each files}}test.ok(existsSync(f.new{{Name}}File({})._tmpl), '{{Name}} should exists.');
    {{/each}}
    test.done();
};
