/** @overview nodeunit test case. */

var testResource = require('{{$relativePathToBaseDir$}}/test/test_resource'),
    mockInjector = require('{{$relativePathToBaseDir$}}/test/mock_injector'),
    _configObjects = require('{{$relativePathToBaseDir$}}/ci/helpers/_config_objects.js');

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

exports.tearDown = function (done) {
    mockInjector.restoreAll();
    done();
};
exports['Define a chainable.'] = function (test) {
    var Obj = _configObjects._defineChainable({_foo: 'bar'}, ['baz', 'foo']);
    var obj = new Obj();
    test.equal(obj.foo(), 'bar');
    obj.baz('quz');
    test.equal(obj.baz(), 'quz');
    test.done();
};

exports['Setting objects.'] = function (test) {
    test.ok(_configObjects._defineChainable);
    test.done();
};