Untitled

mail@pastecode.io avatar
unknown
plain_text
8 months ago
857 B
0
Indexable
Never
const salesMock = [
  {
    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 SalesIdOne = {
  id: 1,
  date: '2024-01-18 01:11:44',
  saleId: 1,
  productId: 1,
  quantity: 5,
};

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

const salesServerMock = {
  status: 200,
  data: salesMock,
};

const salesServiceMockNotFound = {
  status: 200,
  data: salesServerMock,
};

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

module.exports = {
  salesMock,
  SalesIdOne,
  salesNotFoundMock,
  salesServerMock,
  salesServiceMockNotFound,
  salesMockServer,
};
Leave a Comment