Skip to content

Commit

Permalink
chore(robot): formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LatentDream committed Apr 25, 2024
1 parent df8c784 commit 8cd66e9
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/renderer/hooks/useTestImport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import {
useDisplayedSequenceState,
} from "./useTestSequencerState";
import { map } from "lodash";
import { ImportTestSettings, discoverableTestTypes as DiscoverableTestTypes } from "@/renderer/routes/test_sequencer_panel/components/modals/ImportTestModal";
import {
ImportTestSettings,
discoverableTestTypes as DiscoverableTestTypes,
} from "@/renderer/routes/test_sequencer_panel/components/modals/ImportTestModal";
import { toast } from "sonner";
import { useCallback } from "react";
import { discoverPytest, discoverRobot } from "@/renderer/lib/api";
Expand Down Expand Up @@ -61,10 +64,16 @@ export const useDiscoverAndImportTests = () => {
response: [{ testName: path, path: path }],
missingLibraries: [],
error: null,
})
});
})
.with("pytest", async () => await discoverPytest(path, settings.importAsOneRef))
.with("robotframework", async () => await discoverRobot(path, settings.importAsOneRef))
.with(
"pytest",
async () => await discoverPytest(path, settings.importAsOneRef),
)
.with(
"robotframework",
async () => await discoverRobot(path, settings.importAsOneRef),
)
.exhaustive();
if (dataResponse.isErr()) {
return err(dataResponse.error);
Expand Down

0 comments on commit 8cd66e9

Please sign in to comment.