Sha256: d0a1645f2cb8d3d4bf304be50d619c8cfa7dcd74a35ceae7048907c1ca250922

Contents?: true

Size: 282 Bytes

Versions: 56

Compression:

Stored size: 282 Bytes

Contents

import { name } from "faker/locale/en";

/**
 * Generate random user data to emulate a database real content
 * @returns {Object} - An object representing user data
 */
const generateUserData = () => {
  return {
    name: name.findName(),
  };
};

export default generateUserData;

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
decidim-comments-0.6.3 app/frontend/support/generate_user_data.ts
decidim-0.6.3 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.6.2 app/frontend/support/generate_user_data.ts
decidim-0.6.2 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.6.1 app/frontend/support/generate_user_data.ts
decidim-0.6.1 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.6.0 app/frontend/support/generate_user_data.ts
decidim-0.6.0 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.5.1 app/frontend/support/generate_user_data.ts
decidim-0.5.1 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.5.0 app/frontend/support/generate_user_data.ts
decidim-0.5.0 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.4.4 app/frontend/support/generate_user_data.ts
decidim-0.4.4 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.4.3 app/frontend/support/generate_user_data.ts
decidim-comments-0.4.2 app/frontend/support/generate_user_data.ts
decidim-comments-0.4.1 app/frontend/support/generate_user_data.ts
decidim-0.4.3 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-0.4.2 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-0.4.1 decidim-comments/app/frontend/support/generate_user_data.ts