forked from mirror/ObjToSchematic
Fixed test relying on absolute path
This commit is contained in:
parent
ebd1575452
commit
b869c201f9
@ -1,3 +1,4 @@
|
||||
import { AppPaths, PathUtil } from '../src/util/path_util';
|
||||
import { WorkerClient } from '../src/worker_client';
|
||||
import { headlessConfig } from '../tools/headless-config';
|
||||
import { TEST_PREAMBLE } from './preamble';
|
||||
@ -5,10 +6,12 @@ import { TEST_PREAMBLE } from './preamble';
|
||||
test('Schematic-friendly Palette', () => {
|
||||
TEST_PREAMBLE();
|
||||
|
||||
const worker = WorkerClient.Get;
|
||||
const config = headlessConfig;
|
||||
|
||||
config.import.filepath = PathUtil.join(AppPaths.Get.resources, './samples/skull.obj');
|
||||
config.assign.blockPalette = 'schematic-friendly';
|
||||
|
||||
const worker = WorkerClient.Get;
|
||||
worker.import(headlessConfig.import);
|
||||
worker.voxelise(headlessConfig.voxelise);
|
||||
worker.assign(headlessConfig.assign);
|
||||
|
Loading…
Reference in New Issue
Block a user