diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2017-05-05 14:45:14 -0500 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-05-05 14:45:21 -0500 |
commit | f1d48c25a2fa53995ed9fa491a72193bfc83be32 (patch) | |
tree | f2a7517ec7c7775de463362d30126d7a813cf285 /spec/javascripts/helpers | |
parent | 48e4991907aa9046c25323af53afc3b7eaa895c4 (diff) | |
download | gitlab-ce-f1d48c25a2fa53995ed9fa491a72193bfc83be32.tar.gz |
Fix failing spec and eslint
Diffstat (limited to 'spec/javascripts/helpers')
-rw-r--r-- | spec/javascripts/helpers/user_mock_data_helper.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/javascripts/helpers/user_mock_data_helper.js b/spec/javascripts/helpers/user_mock_data_helper.js new file mode 100644 index 00000000000..a9783ea065c --- /dev/null +++ b/spec/javascripts/helpers/user_mock_data_helper.js @@ -0,0 +1,16 @@ +export default { + createNumberRandomUsers(numberUsers) { + const users = []; + for (let i = 0; i < numberUsers; i = i += 1) { + users.push( + { + avatar: 'http://gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', + id: (i + 1), + name: `GitLab User ${i}`, + username: `gitlab${i}`, + }, + ); + } + return users; + }, +}; |