Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
937 B
0
Indexable
Never
const SOME_SALES_MOCK = [
  {
    id: 1,
    date: '2024-01-18 01:11:44',
    saleId: 1,
    productId: 1,
    quantity: 5,
  },
  {
    id: 2,
    date: '2024-01-18 01:11:44',
    saleId: 1,
    productId: 2,
    quantity: 10,
  },
  {
    id: 3,
    date: '2024-01-18 01:11:44',
    saleId: 2,
    productId: 3,
    quantity: 15,
  },
];

const UNIQUE_SALE_MOCK = {
  id: 1,
  date: '2024-01-18 01:11:44',
  saleId: 1,
  productId: 1,
  quantity: 5,
};

const SALE_NOTFOUND_MOCK = {
  message: 'Sale not found',
};

const SALES_SERVICES_MOCK = {
  status: 200,
  data: SOME_SALES_MOCK,
};

const SALES_SERVICES_NOT_FOUND_MOCK = {
  status: 200,
  data: SALES_SERVICES_MOCK,
};

const SALES_PRODUCT_NOTFOUND_MOCK = { 
  status: 404,
  data: 'Product not found', 
};

module.exports = {
  SOME_SALES_MOCK,
  UNIQUE_SALE_MOCK,
  SALE_NOTFOUND_MOCK,
  SALES_SERVICES_MOCK,
  SALES_SERVICES_NOT_FOUND_MOCK,
  SALES_PRODUCT_NOTFOUND_MOCK,
};
Leave a Comment