Sha256: 3f3cbfb48b211da3780c9254fae0000d6062f6ea0c841fab19182458a2538711

Contents?: true

Size: 311 Bytes

Versions: 4

Compression:

Stored size: 311 Bytes

Contents

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

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

export default generateCurrentUserData;

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
decidim-comments-0.0.2 app/frontend/support/generate_current_user_data.js
decidim-0.0.2 decidim-comments/app/frontend/support/generate_current_user_data.js
decidim-comments-0.0.1 app/frontend/support/generate_current_user_data.js
decidim-0.0.1 decidim-comments/app/frontend/support/generate_current_user_data.js