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.4.0 app/frontend/support/generate_user_data.ts
decidim-0.4.0 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.3.2 app/frontend/support/generate_user_data.ts
decidim-0.3.2 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.3.1 app/frontend/support/generate_user_data.ts
decidim-0.3.1 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.3.0 app/frontend/support/generate_user_data.ts
decidim-0.3.0 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.2.0 app/frontend/support/generate_user_data.ts
decidim-0.2.0 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.1.0 app/frontend/support/generate_user_data.ts
decidim-0.1.0 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.0.8.1 app/frontend/support/generate_user_data.ts
decidim-0.0.8.1 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.0.7 app/frontend/support/generate_user_data.ts
decidim-0.0.7 decidim-comments/app/frontend/support/generate_user_data.ts