mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: broken tests
This commit is contained in:
parent
f9162d6add
commit
f7c7d38a30
@ -50,11 +50,13 @@ test("faqUrl returns default '/faq' url when there is no corresponding site sett
|
||||
|
||||
test("showMoblieToggle returns true when mobile theme is enabled in site settings", function() {
|
||||
Discourse.SiteSettings.enable_mobile_theme = true;
|
||||
Discourse.Mobile.isMobileDevice = true;
|
||||
equal(controller.get("showMobileToggle"), true);
|
||||
});
|
||||
|
||||
test("showMoblieToggle returns false when mobile theme is disabled in site settings", function() {
|
||||
Discourse.SiteSettings.enable_mobile_theme = false;
|
||||
Discourse.Mobile.isMobileDevice = true;
|
||||
equal(controller.get("showMobileToggle"), false);
|
||||
});
|
||||
|
||||
|
@ -85,7 +85,7 @@ test("notifications dropdown", function() {
|
||||
});
|
||||
|
||||
test("sitemap dropdown", function() {
|
||||
expect(8);
|
||||
expect(7);
|
||||
|
||||
Discourse.SiteSettings.faq_url = "faq-url";
|
||||
Discourse.SiteSettings.enable_mobile_theme = true;
|
||||
@ -117,7 +117,6 @@ test("sitemap dropdown", function() {
|
||||
ok(exists($siteMapDropdown.find(".admin-link")), "has showing / hiding admin links correctly bound");
|
||||
ok(exists($siteMapDropdown.find(".flagged-posts.badge-notification")), "has displaying flagged posts badge correctly bound");
|
||||
equal($siteMapDropdown.find(".faq-link").attr("href"), "faq-url", "is correctly bound to the FAQ url site config");
|
||||
notEqual($siteMapDropdown.find(".mobile-toggle-link").text().indexOf("mobile_view"), -1, "has displaying mobile theme toggle link correctly bound");
|
||||
|
||||
ok(exists($siteMapDropdown.find(".category-links")), "has categories correctly bound");
|
||||
ok(exists($siteMapDropdown.find(".new-posts")), "has displaying category badges correctly bound");
|
||||
|
Loading…
Reference in New Issue
Block a user