ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/thatdeveloperguy-website / tests/unit/scene.test.ts

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/thatdeveloperguy-website / tests/unit/scene.test.ts
DateNot specified in source
RepositoryJanady13/thatdeveloperguy-website
Revision2bea2ebdff0e34494bff597d4fa9c8422a0c3a94
Branchmain
Path or archive membertests/unit/scene.test.ts
Original SHA-2560dc12bf3ed80293da14ef7159ec791ce3aa90090912e39c3050340cce3b0ddd4
Git blob SHA6fe7c743ece220205af09591a4c2d86f039b5195
Reading-copy SHA-2560dc12bf3ed80293da14ef7159ec791ce3aa90090912e39c3050340cce3b0ddd4

Original source ↗

Recovered source transcript

import { test } from 'node:test'; import assert from 'node:assert/strict'; import { readFileSync } from 'node:fs'; import { resolveDestination } from '../../app/experience/resolve-destination.ts'; const lobby = JSON.parse(readFileSync(new URL('../../app/experience/scenes/lobby/scene.json', import.meta.url), 'utf8')); test('lobby hotspots resolve to registry URLs: three doors, reception → contact, lounge → company', () => { const hrefs = lobby.hotspots.map((h: any) => resolveDestination(h.target, 'home')); assert.deepEqual(hrefs, ['/capabilities/business-it', '/government', '/capabilities/cybersecurity', '/contact', '/company']); }); test('room hotspots resolve to anchors and contact intents; a draft page resolves to null', () => { const it = JSON.parse(readFileSync(new URL('../../app/experience/scenes/it-services/scene.json', import.meta.url), 'utf8')); assert.equal(resolveDestination(it.hotspots[0].target, 'capability.business-it'), '#overview'); assert.equal(resolveDestination({ kind: 'anchor', anchor: 'overview', pageId: 'capability.business-it' }, 'home'), '/capabilities/business-it#overview'); assert.equal(resolveDestination({ kind: 'page', pageId: 'contact', project: 'itsupport' }, 'capability.business-it'), '/contact?project=itsupport&from=capability.business-it'); assert.equal(resolveDestination({ kind: 'page', pageId: 'audience.business' }, 'home'), null); });

Search equations, builds, manuscript text, and recovered sources.