Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
834 B
2
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,
  },
];
Leave a Comment