Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.
JavaScript 3d3d-assets3d-modelingagent-skillsagent-toolsai-agentsasset-pipelinecligame-assetsglbgltfmcpmcp-servermodel-context-protocolprocedural-generationprocedural-modelingtext-to-3dthreejstypescript
import { expect, test } from 'bun:test';
import { initialWorkspaceSection } from './navigation';
test('a fresh or invalid dashboard preference opens the standalone Library', () => {
expect(initialWorkspaceSection('', undefined)).toBe('library');
expect(initialWorkspaceSection('', null)).toBe('library');
expect(initialWorkspaceSection('', 'removed-section')).toBe('library');
});
test('explicit prior sections remain available and asset/file links open Library', () => {
expect(initialWorkspaceSection('', 'projects')).toBe('projects');
expect(initialWorkspaceSection('', 'live')).toBe('live');
expect(initialWorkspaceSection('?asset=an-exact-asset', 'projects')).toBe('library');
expect(initialWorkspaceSection('?open=fixture.glb', 'materials')).toBe('library');
});
test('an exact material link opens Materials regardless of remembered section', () => {
expect(
initialWorkspaceSection(`?material=atlas&materialRevision=sha256:${'a'.repeat(64)}`, 'live'),
).toBe('materials');
expect(initialWorkspaceSection('?material=atlas', 'live')).toBe('live');
});