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

mock !11404

parent 9fde881d
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