Skip to content

Commit

Permalink
Fix TS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
witoszekdev committed Feb 26, 2025
1 parent 2712ce1 commit 7cae4db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jest.mock("@dashboard/orders/hooks/useHasManageProductsPermission", () => ({
useHasManageProductsPermission: jest.fn(() => false),
}));

const mockData: OrderMetadataDialogData = {
const mockData = {
id: "order-line-id",
productName: "Product Name",
metadata: [{ key: "order-line-key", value: "order-line-value", __typename: "MetadataItem" }],
Expand All @@ -52,7 +52,7 @@ const mockData: OrderMetadataDialogData = {
__typename: "ProductVariant",
},
__typename: "OrderLine",
};
} satisfies OrderMetadataDialogData;

jest.mock("./useMetadataValues", () => ({
useMetadataValues: () => ({
Expand Down
16 changes: 0 additions & 16 deletions src/orders/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1498,8 +1498,6 @@ export const order = (placeholder: string): OrderDetailsWithMetadataFragment =>
quantityFulfilled: 0,
quantityToFulfill: 3,
isGift: false,
metadata: [],
privateMetadata: [],
allocations: [
{
id: "allocation_test_id",
Expand Down Expand Up @@ -1570,8 +1568,6 @@ export const order = (placeholder: string): OrderDetailsWithMetadataFragment =>
name: "Soft",
quantityAvailable: 10,
preorder: null,
metadata: [],
privateMetadata: [],
product: {
__typename: "Product",
id: "UHJvZHVjdDo1",
Expand Down Expand Up @@ -1613,8 +1609,6 @@ export const order = (placeholder: string): OrderDetailsWithMetadataFragment =>
quantityFulfilled: 2,
quantityToFulfill: 0,
isGift: false,
metadata: [],
privateMetadata: [],
allocations: [
{
id: "allocation_test_id",
Expand Down Expand Up @@ -1685,8 +1679,6 @@ export const order = (placeholder: string): OrderDetailsWithMetadataFragment =>
name: "XXL",
quantityAvailable: 10,
preorder: null,
metadata: [],
privateMetadata: [],
product: {
__typename: "Product",
id: "UHJvZHVjdDo1",
Expand Down Expand Up @@ -1893,8 +1885,6 @@ export const draftOrder = (placeholder: string): OrderDetailsWithMetadataFragmen
quantityFulfilled: 0,
quantityToFulfill: 2,
isGift: false,
metadata: [],
privateMetadata: [],
allocations: [
{
id: "allocation_test_id",
Expand Down Expand Up @@ -1965,8 +1955,6 @@ export const draftOrder = (placeholder: string): OrderDetailsWithMetadataFragmen
name: "Hard",
quantityAvailable: 10,
preorder: null,
metadata: [],
privateMetadata: [],
product: {
__typename: "Product",
id: "UHJvZHVjdDo1",
Expand Down Expand Up @@ -2008,8 +1996,6 @@ export const draftOrder = (placeholder: string): OrderDetailsWithMetadataFragmen
quantityFulfilled: 0,
quantityToFulfill: 2,
isGift: false,
metadata: [],
privateMetadata: [],
allocations: [
{
id: "allocation_test_id",
Expand Down Expand Up @@ -2080,8 +2066,6 @@ export const draftOrder = (placeholder: string): OrderDetailsWithMetadataFragmen
name: "15-1337",
quantityAvailable: 10,
preorder: null,
metadata: [],
privateMetadata: [],
product: {
__typename: "Product",
id: "UHJvZHVjdDo1",
Expand Down

0 comments on commit 7cae4db

Please sign in to comment.