test(mcp): align work sync status refresh route
This commit is contained in:
parent
d0012ed4cc
commit
d9051506b7
1 changed files with 4 additions and 4 deletions
|
|
@ -411,7 +411,7 @@ describe('agent-teams-mcp tools', () => {
|
||||||
const calls: Array<{ method?: string; url?: string; body?: unknown }> = [];
|
const calls: Array<{ method?: string; url?: string; body?: unknown }> = [];
|
||||||
const server = await startControlServer(async ({ method, url, body }) => {
|
const server = await startControlServer(async ({ method, url, body }) => {
|
||||||
calls.push({ method, url, body });
|
calls.push({ method, url, body });
|
||||||
if (method === 'GET' && url === '/api/teams/alpha/member-work-sync/alice') {
|
if (method === 'POST' && url === '/api/teams/alpha/member-work-sync/alice/refresh') {
|
||||||
return {
|
return {
|
||||||
body: {
|
body: {
|
||||||
teamName: 'alpha',
|
teamName: 'alpha',
|
||||||
|
|
@ -467,9 +467,9 @@ describe('agent-teams-mcp tools', () => {
|
||||||
|
|
||||||
expect(calls).toEqual([
|
expect(calls).toEqual([
|
||||||
{
|
{
|
||||||
method: 'GET',
|
method: 'POST',
|
||||||
url: '/api/teams/alpha/member-work-sync/alice',
|
url: '/api/teams/alpha/member-work-sync/alice/refresh',
|
||||||
body: undefined,
|
body: {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue