@@ -315,38 +315,6 @@ describe.each([{ permission: 'Master' }, { permission: 'Private' }])(
315315 expect ( response ) . toHaveProperty ( 'isIndexing' , false )
316316 expect ( response ) . toHaveProperty ( 'fieldDistribution' , { } )
317317 } )
318-
319- // TODO: Skipped until discussed
320- test . skip ( `${ permission } key: delete if exists when index is present` , async ( ) => {
321- // const client = await getClient(permission)
322- // const { uid } = await client.createIndex(indexPk.uid)
323- // const response: boolean = await index.deleteIfExists()
324- // expect(response).toBe(true)
325- // await expect(client.getIndex(indexPk.uid)).rejects.toHaveProperty(
326- // 'code',
327- // ErrorStatusCode.INDEX_NOT_FOUND
328- // )
329- } )
330-
331- // TODO: Skipped until discussed
332- test . skip ( `${ permission } key: delete if exists when index is not present` , async ( ) => {
333- // const client = await getClient(permission)
334- // const indexes = await client.getIndexes()
335- // const index = client.index('badIndex')
336- // const response: boolean = await index.deleteIfExists()
337- // expect(response).toBe(false)
338- // await expect(client.getIndex('badIndex')).rejects.toHaveProperty(
339- // 'code',
340- // ErrorStatusCode.INDEX_NOT_FOUND
341- // )
342- // await expect(client.getIndexes()).resolves.toHaveLength(indexes.length)
343- } )
344-
345- // test(`${permission} key: delete if exists error`, async () => {
346- // const client = await getClient(permission)
347- // const index = badHostClient.index(indexPk.uid)
348- // await expect(index.deleteIfExists()).rejects.toThrow()
349- // })
350318 }
351319)
352320
0 commit comments