mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 18:41:07 +08:00
Add acceptance tests for plugin outlets
This commit is contained in:
@ -63,6 +63,10 @@ export default function() {
|
||||
}] });
|
||||
});
|
||||
|
||||
this.get(`/users/eviltrout/emails.json`, () => {
|
||||
return response({ email: 'eviltrout@example.com' });
|
||||
});
|
||||
|
||||
this.get('/users/eviltrout.json', () => {
|
||||
const json = fixturesByUrl['/users/eviltrout.json'];
|
||||
json.user.can_edit = loggedIn();
|
||||
|
Reference in New Issue
Block a user