Untitled
unknown
plain_text
2 years ago
834 B
8
Indexable
const FIRST_SALE_MOCK = {
id: 1,
date: '2024-01-18 01:11:44',
saleId: 1,
productId: 1,
quantity: 5,
};
const INSERT_ONE_SALE_MOCK = [
{
productId: 1,
quantity: Math.floor(Math.random() * 99) + 1,
},
];
const INSERT_TWO_SALES_MOCK = [
{
productId: 1,
quantity: Math.floor(Math.random() * 99) + 1,
},
{
productId: 2,
quantity: Math.floor(Math.random() * 99) + 1,
},
];
const RESULT_INSERT_ONE_SALE_MOCK = 666;
const RESULT_INSERT_TWO_SALES_MOCK = {
id: 666,
};
const RESULT_NEW_INSERT_ONE_SALE_MOCK = [
{
productId: 3,
quantity: Math.floor(Math.random() * 99) + 1,
},
];
const RESULT_NEW_INSERT_TWO_SALES_MOCK = [
{
productId: 3,
quantity: Math.floor(Math.random() * 99) + 1,
},
{
productId: 4,
quantity: Math.floor(Math.random() * 99) + 1,
},
];Editor is loading...
Leave a Comment