Skip to content

Commit 684ffc4

Browse files
committed
agents-md: the truncated-read tests laid out as the formatter lays them
1 parent 653d32f commit 684ffc4

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎mods/agents-md/tests/register.test.ts‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ describe('register', () => {
9393
],
9494
['an incomplete line range', {}, { content: '# head', numLines: 1 }, true],
9595
['a complete read', {}, {}, false],
96-
['an explicit limit', { limit: 1 }, { content: '# head', numLines: 1 }, true],
96+
[
97+
'an explicit limit',
98+
{ limit: 1 },
99+
{ content: '# head', numLines: 1 },
100+
true,
101+
],
97102
[
98103
'an explicit offset',
99104
{ offset: 2 },
@@ -133,7 +138,11 @@ describe('register', () => {
133138
: 'read',
134139
}))
135140

136-
const direct = await $.tool.call({ tool: 'Read', file_path: path, ...args })
141+
const direct = await $.tool.call({
142+
tool: 'Read',
143+
file_path: path,
144+
...args,
145+
})
137146
const source = { tool: 'Read', file_path: `${dir}/source.ts` } as const
138147
const after = await $.tool.call(source)
139148
const repeated = await $.tool.call(source)

0 commit comments

Comments
 (0)