add test cases types
This commit is contained in:
parent
2e98c00901
commit
a55b453855
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user