"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const util_1 = require("../../util");
const CoreTestContext_1 = require("../testeditor/CoreTestContext");
const CoreTestModel_1 = require("../testmodel/CoreTestModel");
describe("CoreTest Model", () => {
    describe("container settings", () => {
        let context;
        let root;
        beforeEach(done => {
            util_1.PiLogger.muteAllLogs();
            context = new CoreTestContext_1.CoreTestContext();
            root = context.rootElement;
            done();
        });
        it(" children should be set at start", () => {
            expect(root.name).toBe("CoreTestModel");
            expect(root.model instanceof CoreTestModel_1.CoreTestModel).toBe(true);
            const model = root;
            expect(model.units[0].entities.length).toBe(2);
            const f = model.units[0].entities[0].functions[0];
            expect(f.expression.container).toBe(f);
            expect(f.container).toBe(model.units[0].entities[0]);
            expect(f.expression.container).toBeTruthy();
            expect(f.expression.piContainer().container).toBe(f);
        });
    });
});
//# sourceMappingURL=CoreTest.spec.js.map