Skip to content

Commit 8ebf4fa

Browse files
committed
fix: put prefix in the right place
1 parent 5f7d996 commit 8ebf4fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mocknRFCloud.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ export const steps = ({
8989
async ({ match: { methodPathQuery }, log: { progress }, step }) => {
9090
const expectedResponse = codeBlockOrThrow(step).code
9191
const response = parseMockResponse(expectedResponse)
92-
progress(`expected query: ${prefix}/${methodPathQuery}`)
9392
const [method, resourceWithQuery] = methodPathQuery.split(' ') as [
9493
string,
9594
string,
9695
]
96+
progress(`expected query: ${method} ${prefix}/${resourceWithQuery}`)
9797
const [resource, queryParams] = resourceWithQuery.split('?') as [
9898
string,
9999
string,
@@ -133,8 +133,8 @@ export const steps = ({
133133
expectedBody = JSON.stringify(JSON.parse(expectedBody))
134134
}
135135

136-
const methodPathQuery = `${request.method} ${sortQueryString(request.resource.slice(1))}`
137-
progress(`expected query: ${prefix}/${methodPathQuery}`)
136+
const methodPathQuery = `${request.method} ${prefix}/${sortQueryString(request.resource.slice(1))}`
137+
progress(`expected query: ${methodPathQuery}`)
138138

139139
const scanRequests = async () => {
140140
const result = await db.send(
@@ -147,7 +147,7 @@ export const steps = ({
147147
'#headers': 'headers',
148148
},
149149
ExpressionAttributeValues: {
150-
':methodPathQuery': { S: `${prefix}/${methodPathQuery}` },
150+
':methodPathQuery': { S: methodPathQuery },
151151
},
152152
ProjectionExpression: '#body, #headers',
153153
ScanIndexForward: false,

0 commit comments

Comments
 (0)