"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const assert = require("assert");
const STRING_1 = require("../../constant/STRING");
const debug_1 = require("../../debug");
const fromSpec_1 = require("../../spec/fromSpec");
const _specs_1 = require("../../system/_specs");
const system_1 = require("../util/system");
const spec = system_1.system.newSpec({
    name: STRING_1.UNTITLED,
    units: {
        add: {
            id: '6fe452f2-2ec1-4ee2-887d-751c3697e6bf',
            input: {
                b: {
                    data: '1',
                },
                a: {
                    data: '2',
                },
            },
        },
    },
    merges: {},
    inputs: {},
    outputs: {},
});
const Class = (0, fromSpec_1.fromSpec)(spec, _specs_1.default, system_1.system.classes);
const composition = new Class(system_1.system);
composition.play();
false && (0, debug_1.watchGraphAndLog)(composition);
assert.equal(composition.getUnit('add').getOutput('a + b').take(), 3);
//# sourceMappingURL=createClass.js.map