"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    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) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
const enzyme_1 = require("enzyme");
const React = require("react");
const components_1 = require("../../../../editor/components");
const editor_1 = require("../../../../editor");
const util_1 = require("../../../../util");
const testeditor_1 = require("../../../testeditor");
const testmodel_1 = require("../../../testmodel");
describe("PiEditor", () => {
    let editor;
    let expression;
    let context;
    let projectedProps;
    let component;
    beforeEach(() => {
        util_1.PiLogger.muteAllLogs();
        expression = testmodel_1.CoreTestNumberLiteralExpression.create("0");
        context = new testeditor_1.CoreTestContext(expression);
        const action = new testeditor_1.CoreTestActions();
        const projection = new testeditor_1.CoreTestProjection();
        editor = new editor_1.PiEditor(projection, action);
        editor.rootElement = context.rootElement;
        projectedProps = { editor: editor };
    });
    describe("getRootBox", () => {
        it("should return the root box", () => __awaiter(void 0, void 0, void 0, function* () {
            component = enzyme_1.mount(React.createElement(components_1.PiComponent, Object.assign({}, projectedProps)));
            expect(1).toBe(1);
        }));
    });
});
//# sourceMappingURL=PiEditor.spec.js.map