Move entities decode methods to entities

This commit is contained in:
barsdeveloper
2023-01-28 23:33:08 +01:00
parent daf6abf038
commit 2ccb0dc519
15 changed files with 538 additions and 520 deletions

View File

@@ -36,10 +36,10 @@ describe("For Each Loop", () => {
`))
.then(() => node = blueprint.querySelector("ueb-node"))
})
it("is gray", () => expect(Configuration.nodeColor(node)).to.be.equal(Configuration.nodeColors.gray))
it("is gray", () => expect(node.entity.nodeColor()).to.be.deep.equal(Configuration.nodeColors.gray))
it("has no delegate", () => expect(node.querySelector('.ueb-node-top ueb-pin[data-type="delegate"]')).to.be.null)
it("is called For Each Loop", () => expect(node.getNodeDisplayName()).to.be.equal("For Each Loop"))
it("has a specific icon", () => expect(Configuration.nodeIcon(node)).to.be.equal(SVGIcon.forEachLoop))
it("has a specific icon", () => expect(node.entity.nodeIcon()).to.be.deep.equal(SVGIcon.forEachLoop))
it("has 6 pins", () => expect(node.querySelectorAll("ueb-pin")).to.be.lengthOf(6))
it("is not development only", () => expect(node.entity.isDevelopmentOnly()).to.be.false)
it("maintains the order of attributes", () => {