1- import { GetQuery , InsertData , RadData } from ' ../src/types' ;
1+ import { GetQuery , InsertData , RadData } from " ../src/types" ;
22
3- import { GPTController } from ' ../src/gpt-controller' ;
4- import { GPTModel } from ' ../src/enums' ;
5- import fs from 'fs' ;
6- import dotenv from ' dotenv' ;
7- import path , { resolve } from ' path' ;
3+ import { GPTController } from " ../src/gpt-controller" ;
4+ import { GPTModel } from " ../src/enums" ;
5+ import fs from "fs" ;
6+ import dotenv from " dotenv" ;
7+ import path , { resolve } from " path" ;
88
99async function initializeGPT ( ) : Promise < GPTController > {
1010 return new GPTController ( GPTModel . GPT3_5Turbo ) ;
@@ -23,9 +23,11 @@ beforeAll(async () => {
2323 * Finish unit testing (using jest)
2424 ***********/
2525
26- test ( 'Insertion of a paper with one author' , async ( ) => {
27- const paper : string = path . resolve ( __dirname ,
28- './testfiles/SEE_in-flight_data_for_two_static_32KB_memories_on_high_earth_orbit.pdf' ) ;
26+ test ( "Insertion of a paper with one author" , async ( ) => {
27+ const paper : string = path . resolve (
28+ __dirname ,
29+ "./testfiles/Radiation_Test_Dummy_File.pdf"
30+ ) ;
2931 fs . readFileSync ( paper ) ;
3032
3133 await expect ( testGPT . runGPTAnalysis ( [ paper ] ) ) . resolves . not . toThrow ( ) ;
0 commit comments