mirror of
https://github.com/LucasDower/ObjToSchematic.git
synced 2024-11-27 02:19:58 +08:00
10 lines
270 B
TypeScript
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);
|
|
});
|