Skip to content

Instantly share code, notes, and snippets.

@raymonschouwenaar raymonschouwenaar/index.js
Last active Mar 27, 2019

Embed
What would you like to do?
/users/index.js
module.exports = () => {
casual.define("user", function() {
return {
name: casual.first_name,
surname: casual.last_name,
address: casual.street,
phone: casual.phone,
email: casual.email,
postalCode: casual.zip,
city: casual.city,
number: casual.building_number,
id: casual.uuid
};
});
const data = {
users: []
};
// Create 100 users
for (let i = 0; i < 100; i++) {
data.users.push(casual.user);
}
return data;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.