From a3af5bde2ac2dfe7e920ee2b64a27594e667777a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 15 Jan 2017 14:54:36 +0000 Subject: [PATCH] fix tests --- tests/tests_common.py | 2 +- theme/static/src/js/consts.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/tests_common.py b/tests/tests_common.py index a496d4b..3d6c70d 100644 --- a/tests/tests_common.py +++ b/tests/tests_common.py @@ -58,7 +58,7 @@ class CommonPagesTestCase(TestCase): def test_navbar_links(self): content = self.client.get('.404.html') # a page that isnt home links = content.find('ul', class_='navbar-nav').find_all('a') - self.assertEqual(len(links), 4) + self.assertEqual(len(links), 5) for link in links: element = self.get_children(link) self.assertEqual(link.attrs['href'], '/{}/'.format(element.lower())) diff --git a/theme/static/src/js/consts.js b/theme/static/src/js/consts.js index 0bb5a59..038ceea 100644 --- a/theme/static/src/js/consts.js +++ b/theme/static/src/js/consts.js @@ -1,3 +1,5 @@ +'use strict'; + module.exports = { NAVBAR_HEIGHT: $('#main-nav').height(), SCROLL_SPEED: 750