var Project = require('../../lib/project');

exports['Validate config.'] = function (test) {
    var project = new Project();
    test.throws(function () {
        project.validateConfig('foo');
    });
    test.done();
};

exports['Load config.'] = function (test) {
    var project = new Project();
    project.loadConfig({meta: {foo: 'bar'}});
    test.equal(project.meta.foo, 'bar');
    test.done();
};


exports['Lookup a file.'] = function (test) {
    var project = new Project({basedir: '.'});
    test.ifError(project.lookup('foo/bar/__no_exists'));
    test.ok(project.lookup(__filename));
    test.done();
};
