From a55b453855273e4bd70d13c9cfc576540ed9f07d Mon Sep 17 00:00:00 2001 From: nflnkr <105123049+nflnkr@users.noreply.github.com> Date: Sat, 25 Feb 2023 16:53:03 +0300 Subject: [PATCH] add test cases types --- src/stores/mocks/exampleCartValues.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/stores/mocks/exampleCartValues.ts b/src/stores/mocks/exampleCartValues.ts index cd56a49..6b4d373 100644 --- a/src/stores/mocks/exampleCartValues.ts +++ b/src/stores/mocks/exampleCartValues.ts @@ -1,11 +1,26 @@ import { Cart } from "../../model/cart"; import { Tariffs } from "../../model/tariff"; +import { User } from "../../model/user"; +type TestCase = { + input: { + UserInformation: User; + Products: Array<{ + ID: string; + Amount: number; + Price?: number; + }>; + }; + expect: { + price: number; + envolvedDiscounts: string[]; + }; +}; type ExampleCartValues = { privileges: Tariffs.Privilege[]; discounts: Cart.AnyDiscount[]; - testCases: any; + testCases: TestCase[]; }; export const exampleCartValues: ExampleCartValues = {