ObjToSchematic/tests/palette.test.ts
2022-09-17 12:00:30 +01:00

10 lines
268 B
TypeScript

import { Palette } from '../src/palette';
test('Palette', () => {
const myPalette = Palette.create();
myPalette.add('minecraft:stone');
expect(myPalette.count()).toBe(1);
myPalette.remove('minecraft:stone');
expect(myPalette.count()).toBe(0);
});