Skip to content

Commit a5b9a1d

Browse files
committed
Fix tests
1 parent 86e7133 commit a5b9a1d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/containers/Cassette.test.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { renderAndInjectForm, sample } from "@/utils/test-utils";
1+
import { renderAndInjectForm } from "@/utils/test-utils";
22
import { fireEvent, screen, waitFor } from "@testing-library/react";
33
import { Cassette } from "@/components/containers/Cassette";
4+
import { components } from "@/types/schema";
45

5-
const defaultSample = {
6+
const defaultSample: components["schemas"]["SampleOut"] = {
67
id: 1,
78
name: "cassette-sample",
89
subLocation: 1,

src/types/schema.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ export interface components {
833833
/** Sublocation */
834834
subLocation?: number | null;
835835
/** Details */
836-
details?: Record<string, never> | null;
836+
details?: Record<string, any> | null;
837837
/** Comments */
838838
comments?: string | null;
839839
/**

0 commit comments

Comments
 (0)