Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

570 B
Raw Blame
import assert from 'node:assert/strict'
import { readFileSync } from 'node:fs'
import test from 'node:test'

const source = readFileSync(new URL('./ChatHeader.vue', import.meta.url), 'utf8')

test('session header shows basename or temporary workspace, never the absolute path', () => {
  assert.match(source, /hostWorkspaceHeaderText/)
  assert.match(source, /chatHeader\.temporaryWorkspace/)
  assert.match(source, /workspaceLabel/)
  assert.doesNotMatch(source, /session\?\.host_workspace_dir\b/)
  assert.doesNotMatch(source, /\{\{\s*session\.host_workspace_dir/)
})