Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
944 B
3
Indexable
Never
const 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 SINGLE_SALE_MOCK = {
  id: 1,
  date: '2024-01-18 01:11:44',
  saleId: 1,
  productId: 1,
  quantity: 5,
};

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

const SALES_MOCK_FOR_SERVICES = {
  status: 200,
  data: SALES_MOCK,
};

const SALES_MOCK_FOR_SERVICES_NOT_FOUND = {
  status: 200,
  data: SALES_MOCK_FOR_SERVICES,
};

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

module.exports = {
  SALES_MOCK,
  SINGLE_SALE_MOCK,
  SERVICES_SALE_NOTFOUND_MOCK,
  SALES_MOCK_NOTFOUND,
  SALES_MOCK_FOR_SERVICES,
  SALES_MOCK_FOR_SERVICES_NOT_FOUND,
};
Leave a Comment