Loading files
442a3eef4This 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.
442a3eef4This file is pinned to the selected release. Download the original to open it in your design tool.
import assert from 'node:assert/strict'
import { readFileSync } from 'node:fs'
import { test } from 'node:test'
const defaultLaunchPath = 'host/app/default-behavior/on-launch.ts'
const setupModePath = 'host/app/setup-mode.ts'
test('default launch behavior reaches the settings screen only through setup-mode', () => {
const launchSource = readFileSync(defaultLaunchPath, 'utf8')
const setupModeSource = readFileSync(setupModePath, 'utf8')
assert.doesNotMatch(launchSource, /from 'settings-view'/)
assert.match(launchSource, /from 'setup-mode'/)
assert.match(setupModeSource, /from 'settings-view'/)
// Piu view construction belongs to the view layer; on-launch orchestrates.
assert.doesNotMatch(launchSource, /new Container/)
assert.doesNotMatch(launchSource, /new Column/)
assert.doesNotMatch(launchSource, /new Label/)
assert.doesNotMatch(launchSource, /new Skin/)
assert.doesNotMatch(launchSource, /new Style/)
assert.doesNotMatch(launchSource, /globalThis\.button/)
})