mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 22:11:34 +08:00
Fix broken tests
This commit is contained in:
@ -90,10 +90,11 @@ test("sitemap dropdown", function() {
|
||||
Discourse.SiteSettings.faq_url = "faq-url";
|
||||
Discourse.SiteSettings.enable_mobile_theme = true;
|
||||
|
||||
Discourse.User.current.returns({
|
||||
Discourse.User.current.returns(Ember.Object.create({
|
||||
username: 'test',
|
||||
staff: true,
|
||||
site_flagged_posts_count: 1
|
||||
});
|
||||
}));
|
||||
|
||||
Discourse.Category.list.returns([
|
||||
Discourse.Category.create({
|
||||
|
Reference in New Issue
Block a user