UNPKG

@chix/flow

Version:
29 lines 786 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var chai_1 = require("chai"); var node_1 = require("../../node"); var parent_1 = require("../parent"); var TestBase = (function () { function TestBase() { } return TestBase; }()); var Parent = parent_1.$Parent(TestBase); var node = new node_1.xNode('my-id', { ns: 'hello', name: 'world', ports: {}, }); describe('Parent', function () { var parent = new Parent(); it('setParent', function () { parent.setParent(node); }); it('getParent', function () { chai_1.expect(parent.getParent()).to.eql(node); }); it('hasParent', function () { chai_1.expect(parent.hasParent()).to.be.equal(true); }); }); //# sourceMappingURL=parent.spec.js.map