@@ -25,7 +25,7 @@ describe("Catalog Management Integration Tests", () => {
2525
2626 it ( "get nonexistent catalog item should 404" , async ( ) => {
2727 await expect (
28- client . getCatalogItem ( "nonexistent-catalog" , "nonexistent-item" )
28+ client . getCatalogItem ( { catalogName : "nonexistent-catalog" , itemId : "nonexistent-item" } )
2929 ) . rejects . toMatchObject ( {
3030 statusCode : 404 ,
3131 } ) ;
@@ -42,7 +42,7 @@ describe("Catalog Management Integration Tests", () => {
4242 it ( "should get catalog field mappings with correct structure" , async ( ) => {
4343 // Create a test catalog
4444 const catalogName = uniqueId ( "test-catalog-mappings" ) ;
45- await withTimeout ( client . createCatalog ( catalogName ) ) ;
45+ await withTimeout ( client . createCatalog ( { catalogName } ) ) ;
4646
4747 // Add some items to the catalog with various field types
4848 await withTimeout (
@@ -77,7 +77,7 @@ describe("Catalog Management Integration Tests", () => {
7777 it ( "should get catalog items" , async ( ) => {
7878 // Always create a fresh test catalog to ensure clean test state
7979 const catalogName = uniqueId ( "test-catalog-items" ) ;
80- await withTimeout ( client . createCatalog ( catalogName ) ) ;
80+ await withTimeout ( client . createCatalog ( { catalogName } ) ) ;
8181
8282 const itemId1 = uniqueId ( "catalog-items-test-1" ) ;
8383 const itemId2 = uniqueId ( "catalog-items-test-2" ) ;
@@ -128,7 +128,7 @@ describe("Catalog Management Integration Tests", () => {
128128 it ( "should handle pagination parameters for catalog items" , async ( ) => {
129129 // Always create a fresh test catalog for pagination testing
130130 const catalogName = uniqueId ( "test-catalog-pagination" ) ;
131- await withTimeout ( client . createCatalog ( catalogName ) ) ;
131+ await withTimeout ( client . createCatalog ( { catalogName } ) ) ;
132132
133133 const itemId1 = uniqueId ( "pagination-test-1" ) ;
134134 const itemId2 = uniqueId ( "pagination-test-2" ) ;
@@ -196,10 +196,10 @@ describe("Catalog Management Integration Tests", () => {
196196 it ( "should delete a catalog" , async ( ) => {
197197 // Create a test catalog to delete
198198 const catalogName = uniqueId ( "test-catalog-delete" ) ;
199- await withTimeout ( client . createCatalog ( catalogName ) ) ;
199+ await withTimeout ( client . createCatalog ( { catalogName } ) ) ;
200200
201201 // Delete the catalog
202- const result = await withTimeout ( client . deleteCatalog ( catalogName ) ) ;
202+ const result = await withTimeout ( client . deleteCatalog ( { catalogName } ) ) ;
203203
204204 expect ( result ) . toBeDefined ( ) ;
205205 expect ( result ) . toHaveProperty ( "msg" ) ;
@@ -212,7 +212,7 @@ describe("Catalog Management Integration Tests", () => {
212212 it ( "should update catalog field mappings" , async ( ) => {
213213 // Create a test catalog
214214 const catalogName = uniqueId ( "test-catalog-field-mappings" ) ;
215- await withTimeout ( client . createCatalog ( catalogName ) ) ;
215+ await withTimeout ( client . createCatalog ( { catalogName } ) ) ;
216216
217217 // Add items with some fields first
218218 await withTimeout (
@@ -258,7 +258,7 @@ describe("Catalog Management Integration Tests", () => {
258258 it ( "should bulk delete catalog items" , async ( ) => {
259259 // Create a test catalog
260260 const catalogName = uniqueId ( "test-catalog-bulk-delete" ) ;
261- await withTimeout ( client . createCatalog ( catalogName ) ) ;
261+ await withTimeout ( client . createCatalog ( { catalogName } ) ) ;
262262
263263 const itemId1 = uniqueId ( "bulk-delete-1" ) ;
264264 const itemId2 = uniqueId ( "bulk-delete-2" ) ;
@@ -296,7 +296,7 @@ describe("Catalog Management Integration Tests", () => {
296296 it ( "should partial update a catalog item" , async ( ) => {
297297 // Create a test catalog
298298 const catalogName = uniqueId ( "test-catalog-patch" ) ;
299- await withTimeout ( client . createCatalog ( catalogName ) ) ;
299+ await withTimeout ( client . createCatalog ( { catalogName } ) ) ;
300300
301301 const itemId = uniqueId ( "patch-item" ) ;
302302
@@ -345,7 +345,7 @@ describe("Catalog Management Integration Tests", () => {
345345 it ( "should replace a catalog item" , async ( ) => {
346346 // Create a test catalog
347347 const catalogName = uniqueId ( "test-catalog-replace" ) ;
348- await withTimeout ( client . createCatalog ( catalogName ) ) ;
348+ await withTimeout ( client . createCatalog ( { catalogName } ) ) ;
349349
350350 const itemId = uniqueId ( "replace-item" ) ;
351351
0 commit comments