SHARE
TWEET

Untitled

a guest May 22nd, 2018 513 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const uniqid = require('uniqid');
  2.  
  3. export default {
  4.   loginData: {
  5.     username: process.env.REACT_APP_API_LOGIN,
  6.     password: process.env.REACT_APP_API_PASSWORD
  7.   },
  8.   userAgentSignUpData: (countryId, cityId) => ({
  9.     company: 'test',
  10.     website: 'test',
  11.     country: countryId,
  12.     city: cityId,
  13.     name: 'test',
  14.     phone: '12345',
  15.     email: `${uniqid()}@gmail.com`
  16.   }),
  17.   userChangeLanguageData: {
  18.     language: "en"
  19.   },
  20.   boatId: 12,
  21.   date: '2005-12-30',
  22.   pax: 2,
  23.   countrySlug: 'united-states',
  24.   citySlug: 'san-diego',
  25.   boatSlug: 'fish-hunter',
  26.   currencyCode: 'USD',
  27.   cityId: 589,
  28.   reportLimit: 2,
  29.   reportOffset: 2,
  30.   orderDir: 'ASC',
  31.   reportId: 1,
  32.   contactBoatData: {
  33.     name: 'ApiTest',
  34.     email: 'test@test.com',
  35.     phone: '+1234567890',
  36.     message: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.',
  37.   },
  38.   listBoatNewData: {
  39.     name: 'test',
  40.     description: 'test',
  41.     capacity: 4,
  42.     currency: 'usd',
  43.     brand: 'test',
  44.     boat_type: 'sailboat',
  45.     length: 10,
  46.     engine_type: 'sail',
  47.     engine_name: 'test',
  48.     engine_power: 10
  49.   },
  50.   listBoatEditData: {
  51.     name: 'test2',
  52.     capacity: 5,
  53.     currency: 'usd'
  54.   },
  55.   bookingNewData: {
  56.     package_id: 2300,
  57.     adults: 1,
  58.     children: 0
  59.   },
  60.   packageDepartureTime: '09:00',
  61.   bookingEditData: {
  62.     package_id: 2300,
  63.     date: '2018-10-11 09:00',
  64.     adults: 2,
  65.     children: 0
  66.   },
  67.   bookingCustomerData: {
  68.     first_name: 'John',
  69.     last_name: 'Doe',
  70.     phone: '12345',
  71.     email: 'mail@gmail.com'
  72.   },
  73.   bookingAddonsAddData: {
  74.     addon_id: '2',
  75.     quantity: '3'
  76.   },
  77.   bookingAddonsRemoveData: {
  78.     addon_id: '2'
  79.   },
  80.   dateTomorrow: () => {
  81.     const date = new Date();
  82.     date.setDate(date.getDate() + 1);
  83.     const yy = date.getFullYear();
  84.     let mm = date.getMonth() + 1;
  85.     if (mm < 10) mm = '0' + mm;
  86.     let dd = date.getDate();
  87.     if (dd < 10) dd = '0' + dd;
  88.     return `${yy}-${mm}-${dd}`;
  89.   },
  90.   listBoatsFishData: {
  91.     q: 'test'
  92.   },
  93.   listBoatLocationSearch: {
  94.     q: 'Dubai'
  95.   },
  96.   listBoatLocationSet: {
  97.     name: 'test',
  98.     latitude: 25.2048493,
  99.     longitude: 55.2707828,
  100.     city: '6242'
  101.   },
  102.   paymentBookingData: {
  103.     number: 4000000400000008,
  104.     exp_month: 10,
  105.     exp_year: 2018,
  106.     cvv: 415,
  107.     additional: 1
  108.   },
  109.   listBoatPackagesData: {
  110.     name: 'test',
  111.     activity: 'fishing',
  112.     price: '100',
  113.     duration: 3,
  114.     type: 'shared',
  115.     min_capacity: 1,
  116.     max_capacity: 20
  117.   },
  118.   listBoatPackagesEditData: {
  119.     name: 'test-test',
  120.     activity: 'fishing',
  121.     price: '100',
  122.     duration: 3,
  123.     type: 'shared',
  124.     capacity: 1
  125.   },
  126.   listBoatLanguagesList: {
  127.     q: 'eng'
  128.   },
  129.   captainNewData: {
  130.     name: 'test',
  131.     years: 27
  132.   },
  133.   captainEditData: {
  134.     name: 'test2',
  135.     years: 25
  136.   }
  137. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top