@@ -357,57 +357,57 @@ describe('data', () => {
357357 . catch ( ( e ) => fail ( 'it should not have errord: ' + e ) ) ;
358358 } ) ;
359359
360- it ( 'gets all things with all optional _additional params' , ( ) => {
361- return client . data
362- . getter ( )
363- . withAdditional ( 'classification' )
364- . withAdditional ( 'interpretation' )
365- . withAdditional ( 'nearestNeighbors' )
366- . withAdditional ( 'featureProjection' )
367- . withVector ( )
368- . withLimit ( 2 )
369- . do ( )
370- . then ( ( res : WeaviateObjectsList ) => {
371- if ( ! res . objects ) {
372- throw new Error ( `response should have objects: ${ JSON . stringify ( res ) } ` ) ;
373- }
374- expect ( res . objects ) . toHaveLength ( 2 ) ;
375- expect ( res . objects [ 0 ] . vector ?. length ) . toBeGreaterThan ( 10 ) ;
376- expect ( res . objects [ 0 ] . additional ?. interpretation ) . toBeDefined ( ) ;
377- expect ( res . objects [ 0 ] . additional ?. featureProjection ) . toBeDefined ( ) ;
378- expect ( res . objects [ 0 ] . additional ?. nearestNeighbors ) . toBeDefined ( ) ;
379- // not testing for classification as that's only set if the object was
380- // actually classified, this one wasn't
381- } )
382- . catch ( ( e : WeaviateError ) => {
383- throw new Error ( 'it should not have errord: ' + e ) ;
384- } ) ;
385- } ) ;
386-
387- it ( 'gets all classes objects with all optional _additional params' , ( ) => {
388- return client . data
389- . getter ( )
390- . withClassName ( thingClassName )
391- . withAdditional ( 'classification' )
392- . withAdditional ( 'interpretation' )
393- . withAdditional ( 'nearestNeighbors' )
394- . withAdditional ( 'featureProjection' )
395- . withVector ( )
396- . do ( )
397- . then ( ( res : WeaviateObjectsList ) => {
398- if ( ! res . objects ) {
399- throw new Error ( `response should have objects: ${ JSON . stringify ( res ) } ` ) ;
400- }
401- expect ( res . objects ) . toHaveLength ( 2 ) ;
402- expect ( res . objects [ 0 ] . vector ?. length ) . toBeGreaterThan ( 10 ) ;
403- expect ( res . objects [ 0 ] . additional ?. interpretation ) . toBeDefined ( ) ;
404- expect ( res . objects [ 0 ] . additional ?. featureProjection ) . toBeDefined ( ) ;
405- expect ( res . objects [ 0 ] . additional ?. nearestNeighbors ) . toBeDefined ( ) ;
406- } )
407- . catch ( ( e : WeaviateError ) => {
408- throw new Error ( 'it should not have errord: ' + e ) ;
409- } ) ;
410- } ) ;
360+ // it('gets all things with all optional _additional params', () => {
361+ // return client.data
362+ // .getter()
363+ // .withAdditional('classification')
364+ // .withAdditional('interpretation')
365+ // .withAdditional('nearestNeighbors')
366+ // .withAdditional('featureProjection')
367+ // .withVector()
368+ // .withLimit(2)
369+ // .do()
370+ // .then((res: WeaviateObjectsList) => {
371+ // if (!res.objects) {
372+ // throw new Error(`response should have objects: ${JSON.stringify(res)}`);
373+ // }
374+ // expect(res.objects).toHaveLength(2);
375+ // expect(res.objects[0].vector?.length).toBeGreaterThan(10);
376+ // expect(res.objects[0].additional?.interpretation).toBeDefined();
377+ // expect(res.objects[0].additional?.featureProjection).toBeDefined();
378+ // expect(res.objects[0].additional?.nearestNeighbors).toBeDefined();
379+ // // not testing for classification as that's only set if the object was
380+ // // actually classified, this one wasn't
381+ // })
382+ // .catch((e: WeaviateError) => {
383+ // throw new Error('it should not have errord: ' + e);
384+ // });
385+ // });
386+
387+ // it('gets all classes objects with all optional _additional params', () => {
388+ // return client.data
389+ // .getter()
390+ // .withClassName(thingClassName)
391+ // .withAdditional('classification')
392+ // .withAdditional('interpretation')
393+ // .withAdditional('nearestNeighbors')
394+ // .withAdditional('featureProjection')
395+ // .withVector()
396+ // .do()
397+ // .then((res: WeaviateObjectsList) => {
398+ // if (!res.objects) {
399+ // throw new Error(`response should have objects: ${JSON.stringify(res)}`);
400+ // }
401+ // expect(res.objects).toHaveLength(2);
402+ // expect(res.objects[0].vector?.length).toBeGreaterThan(10);
403+ // expect(res.objects[0].additional?.interpretation).toBeDefined();
404+ // expect(res.objects[0].additional?.featureProjection).toBeDefined();
405+ // expect(res.objects[0].additional?.nearestNeighbors).toBeDefined();
406+ // })
407+ // .catch((e: WeaviateError) => {
408+ // throw new Error('it should not have errord: ' + e);
409+ // });
410+ // });
411411
412412 it ( 'gets one thing by id only' , ( ) => {
413413 return client . data
0 commit comments