Initial re-vamp of the History tab.

This commit is contained in:
Shruti B Iyer
2017-06-13 09:50:41 +01:00
committed by Dave Page
parent 16a15bf934
commit 1208206bc0
23 changed files with 694 additions and 179 deletions

View File

@@ -58,5 +58,5 @@ def webdir_path():
def try_building_js():
with pushd(webdir_path()):
if call(['yarn', 'run', 'bundle']) != 0:
if call(['yarn', 'run', 'bundle:dev']) != 0:
raise OSError('Error executing bundling the application')

View File

@@ -61,7 +61,7 @@ class JavascriptBundlerTestCase(BaseTestGenerator):
self.mockOs.listdir.return_value = [u'history.js', u'reactComponents.js']
javascriptBundler.bundle()
self.mockSubprocess.call.assert_called_once_with(['yarn', 'run', 'bundle'])
self.mockSubprocess.call.assert_called_once_with(['yarn', 'run', 'bundle:dev'])
reportedState = javascriptBundler.report()
expectedState = self.JsState.NEW
@@ -110,7 +110,7 @@ class JavascriptBundlerTestCase(BaseTestGenerator):
self.mockOs.listdir.return_value = [u'history.js', u'reactComponents.js']
javascriptBundler.bundle()
self.mockSubprocess.call.assert_called_once_with(['yarn', 'run', 'bundle'])
self.mockSubprocess.call.assert_called_once_with(['yarn', 'run', 'bundle:dev'])
reportedState = javascriptBundler.report()
expectedState = self.JsState.OLD