"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
const initTestEnvironment_1 = require("../../../tests/utils/initTestEnvironment");
const randomAddress_1 = require("../../../utils/helpers/randomAddress");
const deployFundFactory_1 = require("../transactions/deployFundFactory");
const managersToHubs_1 = require("../calls/managersToHubs");
describe('managersToHubs', () => {
    const shared = {};
    beforeAll(() => __awaiter(this, void 0, void 0, function* () {
        shared.env = yield initTestEnvironment_1.initTestEnvironment();
        shared.fundFactoryAddress = yield deployFundFactory_1.deployFundFactory(shared.env, {
            accountingFactoryAddress: randomAddress_1.randomAddress(),
            engineAddress: randomAddress_1.randomAddress(),
            factoryPriceSourceAddress: randomAddress_1.randomAddress(),
            feeManagerFactoryAddress: randomAddress_1.randomAddress(),
            mlnTokenAddress: randomAddress_1.randomAddress(),
            participationFactoryAddress: randomAddress_1.randomAddress(),
            policyManagerFactoryAddress: randomAddress_1.randomAddress(),
            sharesFactoryAddress: randomAddress_1.randomAddress(),
            tradingFactoryAddress: randomAddress_1.randomAddress(),
            vaultFactoryAddress: randomAddress_1.randomAddress(),
            versionAddress: randomAddress_1.randomAddress(),
        });
    }));
    it('Manger with no hub ', () => __awaiter(this, void 0, void 0, function* () {
        yield expect(managersToHubs_1.managersToHubs(shared.env, shared.fundFactoryAddress, randomAddress_1.randomAddress())).resolves.toBeNull();
    }));
});
