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