Skip to content

Commit 047d375

Browse files
committed
Change filename for test
1 parent ee8cd2e commit 047d375

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

server/test/gpt-controller.test.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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

99
async 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

Comments
 (0)