@@ -77,7 +77,7 @@ describe('Testing of the collections.create method', () => {
7777 } ,
7878 ] ,
7979 } )
80- . then ( ( ) => contextionary . collections . get ( collectionName ) . config . get ( ) ) ;
80+ . then ( ( ) => contextionary . collections . use ( collectionName ) . config . get ( ) ) ;
8181 expect ( response . name ) . toEqual ( collectionName ) ;
8282 expect ( response . properties ?. length ) . toEqual ( 1 ) ;
8383 expect ( response . properties [ 0 ] . name ) . toEqual ( 'testProp' ) ;
@@ -166,7 +166,7 @@ describe('Testing of the collections.create method', () => {
166166 . create ( {
167167 name : collectionName ,
168168 } )
169- . then ( ( ) => contextionary . collections . get ( collectionName ) . config . get ( ) ) ;
169+ . then ( ( ) => contextionary . collections . use ( collectionName ) . config . get ( ) ) ;
170170 expect ( response . name ) . toEqual ( collectionName ) ;
171171 expect ( response . properties ?. length ) . toEqual ( 0 ) ;
172172 expect ( response . vectorizers . default . indexConfig ) . toBeDefined ( ) ;
@@ -188,7 +188,7 @@ describe('Testing of the collections.create method', () => {
188188 const response = await contextionary . collections
189189 . create ( schema )
190190 . then ( async ( collection ) => expect ( await collection . exists ( ) ) . toEqual ( true ) )
191- . then ( ( ) => contextionary . collections . get ( collectionName ) . config . get ( ) ) ;
191+ . then ( ( ) => contextionary . collections . use ( collectionName ) . config . get ( ) ) ;
192192 expect ( response . name ) . toEqual ( collectionName ) ;
193193 expect ( response . properties ?. length ) . toEqual ( 1 ) ;
194194 expect ( response . properties [ 0 ] . name ) . toEqual ( 'testProp' ) ;
@@ -525,7 +525,7 @@ describe('Testing of the collections.create method', () => {
525525 } ) ,
526526 } )
527527 . then ( async ( collection ) => expect ( await collection . exists ( ) ) . toEqual ( true ) )
528- . then ( ( ) => cluster . collections . get ( collectionName ) . config . get ( ) ) ;
528+ . then ( ( ) => cluster . collections . use ( collectionName ) . config . get ( ) ) ;
529529
530530 expect ( response . name ) . toEqual ( collectionName ) ;
531531 expect ( response . description ) . toEqual ( 'A test collection' ) ;
@@ -628,7 +628,7 @@ describe('Testing of the collections.create method', () => {
628628 vectorizers : weaviate . configure . vectorizer . text2VecContextionary ( ) ,
629629 } )
630630 . then ( async ( collection ) => expect ( await collection . exists ( ) ) . toEqual ( true ) )
631- . then ( ( ) => contextionary . collections . get ( collectionName ) . config . get ( ) ) ;
631+ . then ( ( ) => contextionary . collections . use ( collectionName ) . config . get ( ) ) ;
632632 expect ( response . name ) . toEqual ( collectionName ) ;
633633 expect ( response . properties ?. length ) . toEqual ( 1 ) ;
634634 expect ( response . properties ?. [ 0 ] . name ) . toEqual ( 'testProp' ) ;
@@ -656,7 +656,7 @@ describe('Testing of the collections.create method', () => {
656656 vectorizers : weaviate . configure . vectorizer . text2VecOpenAI ( ) ,
657657 } )
658658 . then ( async ( collection ) => expect ( await collection . exists ( ) ) . toEqual ( true ) )
659- . then ( ( ) => openai . collections . get ( collectionName ) . config . get ( ) ) ;
659+ . then ( ( ) => openai . collections . use ( collectionName ) . config . get ( ) ) ;
660660 expect ( response . name ) . toEqual ( collectionName ) ;
661661 expect ( response . properties ?. length ) . toEqual ( 1 ) ;
662662 expect ( response . properties ?. [ 0 ] . name ) . toEqual ( 'testProp' ) ;
@@ -684,7 +684,7 @@ describe('Testing of the collections.create method', () => {
684684 generative : weaviate . configure . generative . openAI ( ) ,
685685 } )
686686 . then ( async ( collection ) => expect ( await collection . exists ( ) ) . toEqual ( true ) )
687- . then ( ( ) => openai . collections . get ( collectionName ) . config . get ( ) ) ;
687+ . then ( ( ) => openai . collections . use ( collectionName ) . config . get ( ) ) ;
688688 expect ( response . name ) . toEqual ( collectionName ) ;
689689 expect ( response . properties ?. length ) . toEqual ( 1 ) ;
690690 expect ( response . properties ?. [ 0 ] . name ) . toEqual ( 'testProp' ) ;
0 commit comments