Orginize
This commit is contained in:
@@ -39,7 +39,7 @@ function loadFns(rel, names) {
|
||||
}
|
||||
|
||||
test('markdown renders headings lists and bold', () => {
|
||||
const api = loadFns('../lib/agent-markdown.js', ['bareAgentRenderMarkdown'])
|
||||
const api = loadFns('../lib/agent/agent-markdown.js', ['bareAgentRenderMarkdown'])
|
||||
const out = api.bareAgentRenderMarkdown(
|
||||
'# Title\n\nI use **bold** and `code`.\n\n1. One\n2. Two\n\n- Alpha\n- Beta\n',
|
||||
{ useColor: false, width: 72 }
|
||||
@@ -52,7 +52,7 @@ test('markdown renders headings lists and bold', () => {
|
||||
})
|
||||
|
||||
test('markdown fences keep code body', () => {
|
||||
const api = loadFns('../lib/agent-markdown.js', ['bareAgentRenderMarkdown'])
|
||||
const api = loadFns('../lib/agent/agent-markdown.js', ['bareAgentRenderMarkdown'])
|
||||
const out = api.bareAgentRenderMarkdown('```js\nconst x = 1\n```\n', {
|
||||
useColor: false,
|
||||
width: 72
|
||||
@@ -62,7 +62,7 @@ test('markdown fences keep code body', () => {
|
||||
})
|
||||
|
||||
test('think panel scrollbar and scroll keys', () => {
|
||||
const api = loadFns('../lib/agent-think-panel.js', [
|
||||
const api = loadFns('../lib/agent/agent-think-panel.js', [
|
||||
'bareAgentCreateThinkPanel',
|
||||
'bareAgentThinkScrollbar'
|
||||
])
|
||||
@@ -96,7 +96,7 @@ test('think panel scrollbar and scroll keys', () => {
|
||||
})
|
||||
|
||||
test('term cols use full width without 120 cap', () => {
|
||||
const api = loadFns('../lib/agent-think-panel.js', [
|
||||
const api = loadFns('../lib/agent/agent-think-panel.js', [
|
||||
'bareAgentResolveTermCols'
|
||||
])
|
||||
const w = api.bareAgentResolveTermCols(
|
||||
@@ -109,7 +109,7 @@ test('term cols use full width without 120 cap', () => {
|
||||
})
|
||||
|
||||
test('empty think panel never draws', () => {
|
||||
const api = loadFns('../lib/agent-think-panel.js', [
|
||||
const api = loadFns('../lib/agent/agent-think-panel.js', [
|
||||
'bareAgentCreateThinkPanel'
|
||||
])
|
||||
/** @type {string[]} */
|
||||
@@ -134,7 +134,7 @@ test('empty think panel never draws', () => {
|
||||
})
|
||||
|
||||
test('think tag splitter still works', () => {
|
||||
const api = loadFns('../lib/agent-think-panel.js', [
|
||||
const api = loadFns('../lib/agent/agent-think-panel.js', [
|
||||
'bareAgentCreateThinkTagSplitter'
|
||||
])
|
||||
/** @type {string[]} */
|
||||
|
||||
Reference in New Issue
Block a user