ObjToSchematic/tests/palette.test.ts
2023-03-01 18:06:13 +00:00

10 lines
270 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);
});