Fixed test relying on absolute path

This commit is contained in:
Lucas Dower 2022-09-17 12:26:57 +01:00
parent ebd1575452
commit b869c201f9

View File

@ -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);