add test cases types
This commit is contained in:
parent
2e98c00901
commit
a55b453855
@ -1,11 +1,26 @@
|
|||||||
import { Cart } from "../../model/cart";
|
import { Cart } from "../../model/cart";
|
||||||
import { Tariffs } from "../../model/tariff";
|
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 = {
|
type ExampleCartValues = {
|
||||||
privileges: Tariffs.Privilege[];
|
privileges: Tariffs.Privilege[];
|
||||||
discounts: Cart.AnyDiscount[];
|
discounts: Cart.AnyDiscount[];
|
||||||
testCases: any;
|
testCases: TestCase[];
|
||||||
};
|
};
|
||||||
|
|
||||||
export const exampleCartValues: ExampleCartValues = {
|
export const exampleCartValues: ExampleCartValues = {
|
||||||
|
Loading…
Reference in New Issue
Block a user