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.8.4 app/frontend/support/generate_user_data.ts
decidim-comments-0.8.3 app/frontend/support/generate_user_data.ts
decidim-comments-0.8.2 app/frontend/support/generate_user_data.ts
decidim-comments-0.8.1 app/frontend/support/generate_user_data.ts
decidim-comments-0.8.0 app/frontend/support/generate_user_data.ts
decidim-comments-0.7.4 app/frontend/support/generate_user_data.ts
decidim-comments-0.7.3 app/frontend/support/generate_user_data.ts
decidim-comments-0.7.2 app/frontend/support/generate_user_data.ts
decidim-comments-0.7.1 app/frontend/support/generate_user_data.ts
decidim-comments-0.7.0 app/frontend/support/generate_user_data.ts
decidim-comments-0.6.8 app/frontend/support/generate_user_data.ts
decidim-0.6.8 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.6.7 app/frontend/support/generate_user_data.ts
decidim-0.6.7 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.6.6 app/frontend/support/generate_user_data.ts
decidim-0.6.6 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.6.5 app/frontend/support/generate_user_data.ts
decidim-0.6.5 decidim-comments/app/frontend/support/generate_user_data.ts
decidim-comments-0.6.4 app/frontend/support/generate_user_data.ts
decidim-0.6.4 decidim-comments/app/frontend/support/generate_user_data.ts