We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5268f90 commit 3eecc86Copy full SHA for 3eecc86
src/mocks/msw/mockers/alert.mock.ts
@@ -1,4 +1,4 @@
1
-import { Alert } from "@/api/generated";
+import { Alert, AlertSeverity } from "@/api/generated";
2
import { faker } from "@faker-js/faker";
3
4
const ALERT_SECRET_FIELDS = {
@@ -24,7 +24,7 @@ const getBaseAlert = ({
24
id: faker.string.uuid(),
25
prompt_id: faker.string.uuid(),
26
code_snippet: null,
27
- trigger_category: "critical",
+ trigger_category: AlertSeverity.CRITICAL,
28
timestamp: timestamp,
29
});
30
0 commit comments