Loading files
5e4094a64This file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/stack-chan-374381865.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
import assert from 'node:assert/strict'
import test from 'node:test'
import { GUIDE_NAVIGATION_ITEMS, navigationItemForPath, TOOL_NAVIGATION_ITEMS } from './tool-navigation.mjs'
test('tool navigation exposes every primary web surface in the left drawer', () => {
assert.deepEqual(
TOOL_NAVIGATION_ITEMS.map((item) => item.id),
['home', 'flash', 'preference', 'mod-gallery', 'mediapipe', 'simulator', 'editor', 'face-editor']
)
assert.deepEqual(
GUIDE_NAVIGATION_ITEMS.map((item) => item.id),
['tutorial']
)
})
test('tool navigation selects the exact surface instead of every parent path', () => {
assert.equal(navigationItemForPath('/stack-chan/'), 'home')
assert.equal(navigationItemForPath('/stack-chan/editor/'), 'editor')
assert.equal(navigationItemForPath('/stack-chan/mod-gallery/'), 'mod-gallery')
assert.equal(navigationItemForPath('/stack-chan/mediapipe/'), 'mediapipe')
assert.equal(navigationItemForPath('/stack-chan/editor/tutorial.html'), 'tutorial')
assert.equal(navigationItemForPath('/stack-chan/face-editor/index.html'), 'face-editor')
})
5e4094a64This file is pinned to the selected release. Download the original to open it in your design tool.