"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var chai_1 = require("chai");
var _1 = require(".");
var common_1 = require("../common");
var DIR = common_1.fsPath.resolve('./test/sample');
describe('WebSettings', function () {
    it('default values', function () {
        var test = function (path) {
            var res = _1.Settings.create(path).web;
            chai_1.expect(res.exists).to.eql(false);
            chai_1.expect(res.port).to.eql(1234);
            chai_1.expect(res.bundlerArgs.sourcemaps).to.eql(true);
            chai_1.expect(res.bundlerArgs.treeshake).to.eql(false);
            chai_1.expect(res.entry).to.eql('./src/test/web.html');
        };
        test('/NO_EXIST');
        test(common_1.fsPath.join(DIR, 'empty.yml'));
    });
    it('specified values (from file)', function () {
        var res = _1.Settings.create(DIR).web;
        chai_1.expect(res.exists).to.eql(true);
        chai_1.expect(res.port).to.eql(3030);
        chai_1.expect(res.bundlerArgs.sourcemaps).to.eql(false);
        chai_1.expect(res.bundlerArgs.treeshake).to.eql(true);
        chai_1.expect(res.entry).to.eql('./foo/web/hello.html');
    });
});
//# sourceMappingURL=WebSettings.TEST.js.map