"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
require("mocha");
require("chai");
const inversify_1 = require("inversify");
const codiac_ops_common_1 = require("@codiac.io/codiac-ops-common");
const codiac_common_1 = require("@codiac.io/codiac-common");
const LocalOps_1 = require("../LocalOps");
const ops_1 = require("../../ops");
describe("when gitBranchLine is attempted", () => {
    let localOps;
    let logger;
    let ioc = new inversify_1.Container();
    let cliExec;
    it("then it shall return the pedigree of the branch.", () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
        return new Promise((resolve, reject) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
            try {
                logger = new codiac_common_1.BetterConsoleLogger();
                cliExec = new codiac_ops_common_1.CliExec(logger);
                let uiPvd = new ops_1.ThrowingUserInputProvider(logger);
                let styler = new ops_1.NoStyleOutputStyler();
                let cliRoot = process.cwd(); // we're not using this for this test
                let projRoot = process.cwd();
                console.log(`projRoot: ${projRoot}`);
                // let cfgRepo = new ProjectContextRepo({ projectRoot: projRoot });
                localOps = new LocalOps_1.LocalOps(ioc); // , { cliConfigDir: cwd(), version: "0.0.0" }, { projectRoot: projRoot }, cfgRepo, uiPvd, styler, cliExec, logger);
                let lineage = yield localOps.gitBranchLine("main");
                console.dir(lineage);
                // expect(DockerCredentialsStore.configPath).to.equal(defaultConfigPathName, "The docker config path was incorrect");
                resolve();
            }
            catch (err) {
                reject(err);
            }
        }));
    }));
});
//# sourceMappingURL=when-git-branchline-is-attempted.spec.js.map