@@ -2,7 +2,7 @@ import { TEST_USER_ID } from '@codebuff/common/old-constants'
22import { beforeEach , describe , expect , test } from 'bun:test'
33import { NextRequest } from 'next/server'
44
5- import { agentRunsStepsPost } from '../steps '
5+ import { postAgentRunsSteps } from '../_post '
66
77import type { TrackEventFn } from '@codebuff/common/types/contracts/analytics'
88import type { GetUserInfoFromApiKeyFn } from '@codebuff/common/types/contracts/database'
@@ -68,7 +68,7 @@ describe('agentRunsStepsPost', () => {
6868 } ,
6969 )
7070
71- const response = await agentRunsStepsPost ( {
71+ const response = await postAgentRunsSteps ( {
7272 req,
7373 runId : 'run-123' ,
7474 getUserInfoFromApiKey : mockGetUserInfoFromApiKey ,
@@ -92,7 +92,7 @@ describe('agentRunsStepsPost', () => {
9292 } ,
9393 )
9494
95- const response = await agentRunsStepsPost ( {
95+ const response = await postAgentRunsSteps ( {
9696 req,
9797 runId : 'run-123' ,
9898 getUserInfoFromApiKey : mockGetUserInfoFromApiKey ,
@@ -116,7 +116,7 @@ describe('agentRunsStepsPost', () => {
116116 } ,
117117 )
118118
119- const response = await agentRunsStepsPost ( {
119+ const response = await postAgentRunsSteps ( {
120120 req,
121121 runId : 'run-123' ,
122122 getUserInfoFromApiKey : mockGetUserInfoFromApiKey ,
@@ -140,7 +140,7 @@ describe('agentRunsStepsPost', () => {
140140 } ,
141141 )
142142
143- const response = await agentRunsStepsPost ( {
143+ const response = await postAgentRunsSteps ( {
144144 req,
145145 runId : 'run-123' ,
146146 getUserInfoFromApiKey : mockGetUserInfoFromApiKey ,
@@ -175,7 +175,7 @@ describe('agentRunsStepsPost', () => {
175175 } ,
176176 )
177177
178- const response = await agentRunsStepsPost ( {
178+ const response = await postAgentRunsSteps ( {
179179 req,
180180 runId : 'run-123' ,
181181 getUserInfoFromApiKey : mockGetUserInfoFromApiKey ,
@@ -210,7 +210,7 @@ describe('agentRunsStepsPost', () => {
210210 } ,
211211 )
212212
213- const response = await agentRunsStepsPost ( {
213+ const response = await postAgentRunsSteps ( {
214214 req,
215215 runId : 'run-123' ,
216216 getUserInfoFromApiKey : mockGetUserInfoFromApiKey ,
@@ -234,7 +234,7 @@ describe('agentRunsStepsPost', () => {
234234 } ,
235235 )
236236
237- const response = await agentRunsStepsPost ( {
237+ const response = await postAgentRunsSteps ( {
238238 req,
239239 runId : 'run-123' ,
240240 getUserInfoFromApiKey : mockGetUserInfoFromApiKey ,
@@ -264,7 +264,7 @@ describe('agentRunsStepsPost', () => {
264264 } ,
265265 )
266266
267- const response = await agentRunsStepsPost ( {
267+ const response = await postAgentRunsSteps ( {
268268 req,
269269 runId : 'run-123' ,
270270 getUserInfoFromApiKey : mockGetUserInfoFromApiKey ,
@@ -305,7 +305,7 @@ describe('agentRunsStepsPost', () => {
305305 } ,
306306 )
307307
308- const response = await agentRunsStepsPost ( {
308+ const response = await postAgentRunsSteps ( {
309309 req,
310310 runId : 'run-123' ,
311311 getUserInfoFromApiKey : mockGetUserInfoFromApiKey ,
0 commit comments