All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.cypress-utils.fixtures.fake.js Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.fake = void 0;
var _faker = require("@faker-js/faker");
var fake = exports.fake = {};
var email = function email() {
  return _faker.faker.internet.exampleEmail().toLowerCase();
};
var number = function number() {
  return _faker.faker.number["int"]({
    min: 3,
    max: 9
  });
};
var amount = function amount() {
  return _faker.faker.number["int"]({
    min: 1,
    max: 5
  });
};
var randomString = function randomString() {
  return _faker.faker.string.alphanumeric(10);
};
var quantity = function quantity() {
  return _faker.faker.number["int"]({
    min: 1,
    max: 3
  });
};
var randomDay = function randomDay() {
  return _faker.faker.number["int"]({
    min: 1,
    max: 27
  });
};
var percentage = function percentage() {
  return _faker.faker.number["int"]({
    min: 1,
    max: 2
  });
};
var uniqueName = function uniqueName() {
  return _faker.faker.person.firstName() + _faker.faker.number["int"]({
    min: 1,
    max: 100
  });
};
var uniqueDepartment = function uniqueDepartment() {
  return _faker.faker.commerce.department() + _faker.faker.number["int"]({
    min: 1,
    max: 100
  });
};
var phoneNumber = function phoneNumber() {
  var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "9#########";
  return _faker.faker.phone.number(format);
};
var secureUrl = function secureUrl() {
  return _faker.faker.internet.url().replace("http:", "https:");
};
var otp = function otp() {
  return _faker.faker.number["int"]({
    min: 100000,
    max: 999999
  });
};
var longNumber = function longNumber() {
  return _faker.faker.number["int"]({
    min: 1000,
    max: 9999
  });
};
var decimalNumber = function decimalNumber() {
  return _faker.faker.number["int"]({
    min: 1000,
    max: 9999
  }) + Math.random();
};
Object.defineProperty(fake, "firstName", {
  get: _faker.faker.person.firstName
});
Object.defineProperty(fake, "middleName", {
  get: _faker.faker.person.middleName
});
Object.defineProperty(fake, "lastName", {
  get: _faker.faker.person.lastName
});
Object.defineProperty(fake, "fullName", {
  get: _faker.faker.person.fullName
});
Object.defineProperty(fake, "companyName", {
  get: _faker.faker.company.name
});
Object.defineProperty(fake, "streetName", {
  get: _faker.faker.location.street
});
Object.defineProperty(fake, "city", {
  get: _faker.faker.location.city
});
Object.defineProperty(fake, "zipCode", {
  get: _faker.faker.location.zipCode
});
Object.defineProperty(fake, "country", {
  get: _faker.faker.location.country
});
Object.defineProperty(fake, "sentence", {
  get: _faker.faker.lorem.sentence
});
Object.defineProperty(fake, "email", {
  get: email
});
Object.defineProperty(fake, "number", {
  get: number
});
Object.defineProperty(fake, "amount", {
  get: amount
});
Object.defineProperty(fake, "projectName", {
  get: _faker.faker.commerce.productName
});
Object.defineProperty(fake, "department", {
  get: _faker.faker.commerce.department
});
Object.defineProperty(fake, "word", {
  get: _faker.faker.lorem.word
});
Object.defineProperty(fake, "words", {
  get: _faker.faker.lorem.words
});
Object.defineProperty(fake, "randomString", {
  get: randomString
});
Object.defineProperty(fake, "state", {
  get: _faker.faker.location.state
});
Object.defineProperty(fake, "quantity", {
  get: quantity
});
Object.defineProperty(fake, "randomDay", {
  get: randomDay
});
Object.defineProperty(fake, "percentage", {
  get: percentage
});
Object.defineProperty(fake, "uniqueName", {
  get: uniqueName
});
Object.defineProperty(fake, "uniqueDepartment", {
  get: uniqueDepartment
});
Object.defineProperty(fake, "url", {
  get: _faker.faker.internet.url
});
Object.defineProperty(fake, "secureUrl", {
  get: secureUrl
});
Object.defineProperty(fake, "domain", {
  get: _faker.faker.internet.domainName
});
Object.defineProperty(fake, "otp", {
  get: otp
});
Object.defineProperty(fake, "longNumber", {
  get: longNumber
});
Object.defineProperty(fake, "decimalNumber", {
  get: decimalNumber
});
Object.defineProperty(fake, "streetAddress", {
  get: _faker.faker.location.streetAddress
});
fake.phoneNumber = phoneNumber;
//# sourceMappingURL=fake.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy