File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -331,24 +331,22 @@ describe.each([{ permission: 'Master' }, { permission: 'Private' }])(
331331
332332 test ( `${ permission } key: Get updatedAt and createdAt of created index` , async ( ) => {
333333 const client = await getClient ( permission )
334- const { uid } = await client . createIndex ( indexNoPk . uid )
334+ const { uid } = await client . createIndex ( indexPk . uid )
335335 await client . waitForTask ( uid )
336336
337337 const response = await client . index ( indexPk . uid ) . getRawInfo ( )
338338
339- expect ( response ) . toBeInstanceOf ( Date )
340- expect ( response ) . toBeInstanceOf ( Date )
339+ expect ( response ) . toBeDefined ( )
340+ expect ( response ) . toBeDefined ( )
341341 } )
342342
343343 test ( `${ permission } key: Get updatedAt and createdAt from initialized index` , async ( ) => {
344344 const client = await getClient ( permission )
345- const { uid } = await client . createIndex ( indexNoPk . uid )
346- await client . waitForTask ( uid )
347345
348- const response = await client . index ( indexPk . uid ) . getRawInfo ( )
346+ const response = await client . index ( indexPk . uid )
349347
350- expect ( response ) . toBeUndefined ( )
351- expect ( response ) . toBeUndefined ( )
348+ expect ( response . createdAt ) . toBeUndefined ( )
349+ expect ( response . updatedAt ) . toBeUndefined ( )
352350 } )
353351 }
354352)
You can’t perform that action at this time.
0 commit comments