fix unit tests for network handling

This commit is contained in:
John Mitchell
2019-04-10 11:16:20 -04:00
parent ad0e409448
commit 344713f938
26 changed files with 499 additions and 344 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ import Templates from './pages/Templates';
import Users from './pages/Users';
// eslint-disable-next-line import/prefer-default-export
export async function main (render) {
export function main (render) {
const el = document.getElementById('app');
return render(
@@ -246,7 +246,7 @@ export async function main (render) {
)}
</I18n>
</RootProvider>
</HashRouter>, el
</HashRouter>, el || document.createElement('div')
);
}