Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const uniqid = require('uniqid');
- export default {
- loginData: {
- username: process.env.REACT_APP_API_LOGIN,
- password: process.env.REACT_APP_API_PASSWORD
- },
- userAgentSignUpData: (countryId, cityId) => ({
- company: 'test',
- website: 'test',
- country: countryId,
- city: cityId,
- name: 'test',
- phone: '12345',
- email: `${uniqid()}@gmail.com`
- }),
- userChangeLanguageData: {
- language: "en"
- },
- boatId: 12,
- date: '2005-12-30',
- pax: 2,
- countrySlug: 'united-states',
- citySlug: 'san-diego',
- boatSlug: 'fish-hunter',
- currencyCode: 'USD',
- cityId: 589,
- reportLimit: 2,
- reportOffset: 2,
- orderDir: 'ASC',
- reportId: 1,
- contactBoatData: {
- name: 'ApiTest',
- email: 'test@test.com',
- phone: '+1234567890',
- message: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.',
- },
- listBoatNewData: {
- name: 'test',
- description: 'test',
- capacity: 4,
- currency: 'usd',
- brand: 'test',
- boat_type: 'sailboat',
- length: 10,
- engine_type: 'sail',
- engine_name: 'test',
- engine_power: 10
- },
- listBoatEditData: {
- name: 'test2',
- capacity: 5,
- currency: 'usd'
- },
- bookingNewData: {
- package_id: 2300,
- adults: 1,
- children: 0
- },
- packageDepartureTime: '09:00',
- bookingEditData: {
- package_id: 2300,
- date: '2018-10-11 09:00',
- adults: 2,
- children: 0
- },
- bookingCustomerData: {
- first_name: 'John',
- last_name: 'Doe',
- phone: '12345',
- email: 'mail@gmail.com'
- },
- bookingAddonsAddData: {
- addon_id: '2',
- quantity: '3'
- },
- bookingAddonsRemoveData: {
- addon_id: '2'
- },
- dateTomorrow: () => {
- const date = new Date();
- date.setDate(date.getDate() + 1);
- const yy = date.getFullYear();
- let mm = date.getMonth() + 1;
- if (mm < 10) mm = '0' + mm;
- let dd = date.getDate();
- if (dd < 10) dd = '0' + dd;
- return `${yy}-${mm}-${dd}`;
- },
- listBoatsFishData: {
- q: 'test'
- },
- listBoatLocationSearch: {
- q: 'Dubai'
- },
- listBoatLocationSet: {
- name: 'test',
- latitude: 25.2048493,
- longitude: 55.2707828,
- city: '6242'
- },
- paymentBookingData: {
- number: 4000000400000008,
- exp_month: 10,
- exp_year: 2018,
- cvv: 415,
- additional: 1
- },
- listBoatPackagesData: {
- name: 'test',
- activity: 'fishing',
- price: '100',
- duration: 3,
- type: 'shared',
- min_capacity: 1,
- max_capacity: 20
- },
- listBoatPackagesEditData: {
- name: 'test-test',
- activity: 'fishing',
- price: '100',
- duration: 3,
- type: 'shared',
- capacity: 1
- },
- listBoatLanguagesList: {
- q: 'eng'
- },
- captainNewData: {
- name: 'test',
- years: 27
- },
- captainEditData: {
- name: 'test2',
- years: 25
- }
- };
Add Comment
Please, Sign In to add comment