Tests: update tool profile expectations
This commit is contained in:
@@ -19,15 +19,19 @@ function createRegistry(profile, projectPath = path.resolve('/tmp/funplay-cocos-
|
|||||||
|
|
||||||
test('core profile exposes the documented focused tool set', () => {
|
test('core profile exposes the documented focused tool set', () => {
|
||||||
const tools = createRegistry('core').listTools();
|
const tools = createRegistry('core').listTools();
|
||||||
assert.equal(tools.length, 19);
|
assert.equal(tools.length, 22);
|
||||||
assert.equal(tools.some((tool) => tool.name === 'execute_javascript'), true);
|
assert.equal(tools.some((tool) => tool.name === 'execute_javascript'), true);
|
||||||
|
assert.equal(tools.some((tool) => tool.name === 'get_editor_state'), true);
|
||||||
|
assert.equal(tools.some((tool) => tool.name === 'set_selection'), true);
|
||||||
assert.equal(tools.some((tool) => tool.name === 'write_file'), false);
|
assert.equal(tools.some((tool) => tool.name === 'write_file'), false);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('full profile exposes all built-in tools', () => {
|
test('full profile exposes all built-in tools', () => {
|
||||||
const tools = createRegistry('full').listTools();
|
const tools = createRegistry('full').listTools();
|
||||||
assert.equal(tools.length, 67);
|
assert.equal(tools.length, 70);
|
||||||
assert.equal(tools.some((tool) => tool.name === 'write_file'), true);
|
assert.equal(tools.some((tool) => tool.name === 'write_file'), true);
|
||||||
|
assert.equal(tools.some((tool) => tool.name === 'get_editor_state'), true);
|
||||||
|
assert.equal(tools.some((tool) => tool.name === 'set_selection'), true);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('file tools reject writes outside the project root', async () => {
|
test('file tools reject writes outside the project root', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user