UNPKG

bc-minecraft-bedrock-project

Version:

The typescript library responsible for reading/parsing minecraft bedrock data

58 lines 2.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const bc_minecraft_project_1 = require("bc-minecraft-project"); const __1 = require("../.."); describe('BehaviorPack', () => { describe('sanity check', () => { const BP = new __1.BehaviorPack.BehaviorPack('c:\\test', bc_minecraft_project_1.MCProject.createEmpty(), {}); it('animation controllers', () => { expect(typeof BP.animationControllers === '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.lootTables === 'object').toBeTruthy(); }); it('structures', () => { expect(typeof BP.structures === 'object').toBeTruthy(); }); it('trading', () => { expect(typeof BP.trading === 'object').toBeTruthy(); }); it('voxel_shapes', () => { expect(typeof BP.voxelShapes === 'object').toBeTruthy(); }); }); describe('is', () => { const BP = new __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(__1.BehaviorPack.BehaviorPack.is(BP)).toBeTruthy(); }); }); }); //# sourceMappingURL=behavior-pack.test.js.map