1
Fork 0

fix tests

This commit is contained in:
Jake Howard 2017-01-15 14:54:36 +00:00
parent f0bb73e1e1
commit a3af5bde2a
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 3 additions and 1 deletions

View file

@ -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()))

View file

@ -1,3 +1,5 @@
'use strict';
module.exports = {
NAVBAR_HEIGHT: $('#main-nav').height(),
SCROLL_SPEED: 750