Skip to content

Commit 9c80844

Browse files
committed
Fixed failing tests
1 parent f01bdb4 commit 9c80844

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

server/test/database-controller.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ test('Data request with empty filter', async () => {
103103
},
104104
];
105105

106-
const data = await testDB.getData(testGetQuery); // Assuming getData is also async
106+
const data = await testDB.getFilteredData(testGetQuery); // Assuming getData is also async
107107
expect(data).toEqual(expectedData); // Replace with appropriate expectation for your use case
108108
});
109109

@@ -134,6 +134,6 @@ test('Data request with full filter', async () => {
134134
},
135135
];
136136

137-
const data = await testDB.getData(testGetQuery); // Assuming getData is also async
137+
const data = await testDB.getFilteredData(testGetQuery); // Assuming getData is also async
138138
expect(data).toEqual(expectedData); // Replace with appropriate expectation for your use case
139139
});

server/test/gpt-controller.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GetQuery, InsertData, RadData } from "../src/types";
1+
import { GetQuery, TableData, RadData } from "../src/types";
22

33
import { GPTController } from "../src/gpt-controller";
44
import { GPTModel } from "../src/enums";

web/src/pages/ModifyPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import "../App.css";
2-
import { Card } from "@nextui-org/react";
2+
//import { Card } from "@nextui-org/react";
33
import SearchBar from "../components/search-bar";
44
import { useEffect, useState } from "react";
55
import { PaperData } from "../types/types";
6-
import PaperSliver from "../components/paper-sliver";
6+
//import PaperSliver from "../components/paper-sliver";
77
import PaperGallery from "../components/paper-gallery";
88

99
export default function ModifyPage() {
1010
const [papers, setPapers] = useState<PaperData[]>([]);
1111

12-
const [paperAreaHeight, setPaperAreaHeight] = useState<number>();
12+
//const [paperAreaHeight, setPaperAreaHeight] = useState<number>();
1313

1414
const fetchPapers = async (search: string) => {
1515
const token = localStorage.getItem("jwtToken");

web/src/pages/edit-entry.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { HiArrowLeft } from "react-icons/hi";
22
import {Accordion, AccordionItem, Button} from "@nextui-org/react";
33
import { useState } from "react";
44
import { PaperData } from "../types/types";
5-
import { GPTResponse } from "../types/types";
5+
//import { GPTResponse } from "../types/types";
66

77
type PaperProps = {
88
paperData: PaperData[];

0 commit comments

Comments
 (0)