debian-mirror-gitlab/spec/frontend/helpers/user_mock_data_helper.js

15 lines
370 B
JavaScript
Raw Normal View History

2019-05-18 00:54:41 +05:30
export default {
createNumberRandomUsers(numberUsers) {
const users = [];
for (let i = 0; i < numberUsers; i += 1) {
users.push({
avatar: 'https://gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
id: i + 1,
name: `GitLab User ${i}`,
username: `gitlab${i}`,
});
}
return users;
},
};