Code coverage report for lib/common/config-base.js

Statements: 100% (11 / 11)      Branches: 100% (0 / 0)      Functions: 100% (4 / 4)      Lines: 100% (11 / 11)      Ignored: none     

All files » lib/common/ » config-base.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18    1 1 1 12   1 12 12   1 12   1   1  
///<reference path=".d.ts"/>
"use strict";
var path = require("path");
var ConfigBase = (function () {
    function ConfigBase($fs) {
        this.$fs = $fs;
    }
    ConfigBase.prototype.loadConfig = function (name) {
        var configFileName = this.getConfigPath(name);
        return this.$fs.readJson(configFileName);
    };
    ConfigBase.prototype.getConfigPath = function (filename) {
        return path.join(__dirname, "../../config/", filename + ".json");
    };
    return ConfigBase;
})();
exports.ConfigBase = ConfigBase;