UNPKG

bc-minecraft-bedrock-project

Version:

The typescript library responsible for reading/parsing minecraft bedrock data

55 lines 2.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const bc_minecraft_project_1 = require("bc-minecraft-project"); const main_1 = require("../../../src/main"); describe("BehaviorPack", () => { describe("sanity check", () => { const BP = new main_1.BehaviorPack.BehaviorPack("c:\\test", bc_minecraft_project_1.MCProject.createEmpty(), {}); it("animation controllers", () => { expect(typeof BP.animation_controllers === "object").toBeTruthy(); }); it("animations", () => { expect(typeof BP.animations === "object").toBeTruthy(); }); it("blocks", () => { expect(typeof BP.blocks === "object").toBeTruthy(); }); it("context", () => { expect(typeof BP.context === "object").toBeTruthy(); }); it("entities", () => { expect(typeof BP.entities === "object").toBeTruthy(); }); it("folder", () => { expect(typeof BP.folder === "string").toBeTruthy(); }); it("functions", () => { expect(typeof BP.functions === "object").toBeTruthy(); }); it("items", () => { expect(typeof BP.items === "object").toBeTruthy(); }); it("loot_tables", () => { expect(typeof BP.loot_tables === "object").toBeTruthy(); }); it("structures", () => { expect(typeof BP.structures === "object").toBeTruthy(); }); it("trading", () => { expect(typeof BP.trading === "object").toBeTruthy(); }); }); describe("is", () => { const BP = new main_1.BehaviorPack.BehaviorPack("c:\\test", bc_minecraft_project_1.MCProject.createEmpty(), {}); it("Is not undefined", () => { expect(BP).toBeDefined(); }); it("Is not an object", () => { expect(typeof BP === "object").toBeTruthy(); }); it("Is a BehaviorPack", () => { expect(main_1.BehaviorPack.BehaviorPack.is(BP)).toBeTruthy(); }); }); }); //# sourceMappingURL=behavior-pack.test.js.map