Untitled
unknown
plain_text
2 years ago
1.1 kB
10
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,
},
];
// ISSO AQUI E O MODULE EXPORTS
FIRST_SALE_MOCK,
INSERT_ONE_SALE_MOCK,
INSERT_TWO_SALES_MOCK,
RESULT_INSERT_ONE_SALE_MOCK,
RESULT_INSERT_TWO_SALES_MOCK,
RESULT_NEW_INSERT_ONE_SALE_MOCK,
RESULT_NEW_INSERT_TWO_SALES_MOCK,Editor is loading...
Leave a Comment