@@ -18,7 +18,7 @@ describe('extractText', () => {
1818 beforeEach ( ( ) => {
1919 jest . clearAllMocks ( ) ;
2020 // Reset environment variables
21- delete process . env . VECTORIZE_API_TOKEN ;
21+ delete process . env . VECTORIZE_TOKEN ;
2222 delete process . env . VECTORIZE_ORG_ID ;
2323 } ) ;
2424
@@ -28,7 +28,7 @@ describe('extractText', () => {
2828 } ) ;
2929
3030 it ( 'should throw error when file does not exist' , async ( ) => {
31- process . env . VECTORIZE_API_TOKEN = 'test-token' ;
31+ process . env . VECTORIZE_TOKEN = 'test-token' ;
3232 process . env . VECTORIZE_ORG_ID = 'test-org' ;
3333
3434 mockFs . access . mockRejectedValueOnce ( new Error ( 'File not found' ) ) ;
@@ -37,7 +37,7 @@ describe('extractText', () => {
3737 } ) ;
3838
3939 it ( 'should successfully extract text from a file' , async ( ) => {
40- process . env . VECTORIZE_API_TOKEN = 'test-token' ;
40+ process . env . VECTORIZE_TOKEN = 'test-token' ;
4141 process . env . VECTORIZE_ORG_ID = 'test-org' ;
4242
4343 // Mock file operations
@@ -101,7 +101,7 @@ describe('extractText', () => {
101101 } ) ;
102102
103103 it ( 'should handle upload failure' , async ( ) => {
104- process . env . VECTORIZE_API_TOKEN = 'test-token' ;
104+ process . env . VECTORIZE_TOKEN = 'test-token' ;
105105 process . env . VECTORIZE_ORG_ID = 'test-org' ;
106106
107107 mockFs . access . mockResolvedValueOnce ( undefined ) ;
@@ -120,7 +120,7 @@ describe('extractText', () => {
120120 } ) ;
121121
122122 it ( 'should handle file upload failure' , async ( ) => {
123- process . env . VECTORIZE_API_TOKEN = 'test-token' ;
123+ process . env . VECTORIZE_TOKEN = 'test-token' ;
124124 process . env . VECTORIZE_ORG_ID = 'test-org' ;
125125
126126 mockFs . access . mockResolvedValueOnce ( undefined ) ;
@@ -150,7 +150,7 @@ describe('extractText', () => {
150150 } ) ;
151151
152152 it ( 'should handle extraction failure' , async ( ) => {
153- process . env . VECTORIZE_API_TOKEN = 'test-token' ;
153+ process . env . VECTORIZE_TOKEN = 'test-token' ;
154154 process . env . VECTORIZE_ORG_ID = 'test-org' ;
155155
156156 mockFs . access . mockResolvedValueOnce ( undefined ) ;
@@ -198,7 +198,7 @@ describe('extractText', () => {
198198 } ) ;
199199
200200 it ( 'should handle extraction timeout' , async ( ) => {
201- process . env . VECTORIZE_API_TOKEN = 'test-token' ;
201+ process . env . VECTORIZE_TOKEN = 'test-token' ;
202202 process . env . VECTORIZE_ORG_ID = 'test-org' ;
203203
204204 mockFs . access . mockResolvedValueOnce ( undefined ) ;
0 commit comments