Skip to content
Snippets Groups Projects
Commit 85155cfe authored by Winnie Hellmann's avatar Winnie Hellmann
Browse files

mock !11404

Former-commit-id: a849a4b4
parent ee4447a7
No related branches found
No related tags found
No related merge requests found
class UsersCache {
constructor() {
this.dummyUsers = [{
name: 'Winnie Hellmann',
username: 'winh',
id: 1212235,
state: 'active',
avatar_url: 'https://gitlab.com/uploads/user/avatar/1212235/avatar.png',
web_url: 'https://gitlab.com/winh',
}, {
name: 'Chris Peressini',
username: 'cperessini',
id: 563185,
state: 'active',
avatar_url: 'https://gitlab.com/uploads/user/avatar/563185/avatar.png',
web_url: 'https://gitlab.com/cperessini'
}];
}
retrieve(username) {
return Promise.resolve(this.dummyUsers.find(user => user.username == username));
}
}
export default new UsersCache();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment