chore: Move currency, collection, and auth tests to http folder (#7581)

* chore: Move auth tests to http folder

* chore: Migrate collection tests to http folder

* chore: Move currency tests to http folder
This commit is contained in:
Stevche Radevski
2024-06-03 12:13:22 +02:00
committed by GitHub
parent cabdb2fcd8
commit 100154d905
11 changed files with 407 additions and 1006 deletions
@@ -14,6 +14,6 @@ export const retrieveTransformQueryConfig = {
export const listTransformQueryConfig = {
...retrieveTransformQueryConfig,
defaultLimit: 50,
defaultLimit: 200,
isList: true,
}
@@ -8,7 +8,7 @@ export type AdminGetCurrenciesParamsType = z.infer<
>
export const AdminGetCurrenciesParams = createFindParams({
offset: 0,
limit: 50,
limit: 200,
}).merge(
z.object({
q: z.string().optional(),
@@ -59,6 +59,7 @@ export const GET = async (req: MedusaRequest, res: MedusaResponse) => {
const entityIdKey = `${actor_type}_id`
const entityId = authIdentity.app_metadata?.[entityIdKey]
const { jwtSecret, jwtExpiresIn } = http
const token = generateJwtToken(
{
actor_id: entityId,