feat(v3): simplify the project to contain only required tools
This commit is contained in:
@@ -6,18 +6,23 @@ vi.mock("react-quick-pinch-zoom", () => ({
|
||||
}));
|
||||
|
||||
vi.mock("./lib/api.js", () => ({
|
||||
getOperations: () => Promise.resolve({ operations: [] }),
|
||||
getOperations: () => Promise.resolve({
|
||||
operations: [
|
||||
{ id: "histeq", label: "Histogram Equalization", chapter: "Basic", slide_group: "Histogram", params: {}, matrices: [] }
|
||||
]
|
||||
}),
|
||||
listStates: () => Promise.resolve({ states: [] }),
|
||||
uploadImage: vi.fn(),
|
||||
applyStateOperation: vi.fn(),
|
||||
combineStates: vi.fn()
|
||||
combineStates: vi.fn(),
|
||||
deleteState: vi.fn()
|
||||
}));
|
||||
|
||||
describe("App", () => {
|
||||
it("renders the academic workspace immediately", () => {
|
||||
it("renders the workspace immediately", async () => {
|
||||
render(<App />);
|
||||
expect(screen.getByText("Academic Image Processing Workspace")).toBeInTheDocument();
|
||||
expect(screen.getByText("Image Processing Workspace")).toBeInTheDocument();
|
||||
expect(screen.getByText("Image States")).toBeInTheDocument();
|
||||
expect(screen.getByText("Combine Selected States")).toBeInTheDocument();
|
||||
expect(await screen.findByText("Arithmetic / Logic")).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user