diff --git a/tests/ui/unit/context/pushes.tests.jsx b/tests/ui/unit/context/pushes.tests.jsx
index 8cb6a29cc..52d33f6ad 100644
--- a/tests/ui/unit/context/pushes.tests.jsx
+++ b/tests/ui/unit/context/pushes.tests.jsx
@@ -4,7 +4,7 @@ import * as fetchMock from 'fetch-mock';
import { mount } from 'enzyme';
import { getProjectUrl } from '../../../../ui/helpers/url';
-import { Pushes } from '../../../../ui/job-view/context/Pushes';
+import { PushesClass } from '../../../../ui/job-view/context/Pushes';
import FilterModel from '../../../../ui/models/filter';
const { getJSONFixture, inject } = window;
@@ -42,10 +42,11 @@ describe('Pushes context', () => {
*/
it('should have 2 pushes', async () => {
const pushes = mount(
- ,
+ notify={() => {}}
+ >
,
);
await pushes.instance().fetchPushes(10);
expect(pushes.state('pushList').length).toBe(2);
@@ -53,10 +54,11 @@ describe('Pushes context', () => {
it('should have id of 1 in current repo', async () => {
const pushes = mount(
- ,
+ notify={() => {}}
+ >,
);
await pushes.instance().fetchPushes(10);
expect(pushes.state('pushList')[0].id).toBe(1);
diff --git a/tests/ui/unit/init.js b/tests/ui/unit/init.js
index 0c1662a89..69e83cfd7 100644
--- a/tests/ui/unit/init.js
+++ b/tests/ui/unit/init.js
@@ -18,14 +18,5 @@ configure({ adapter: new Adapter() });
const jsContext = require.context('../../../ui/js', true, /^\.\/.*\.jsx?$/);
jsContext('./filters.js');
-const controllerContext = require.context('../../../ui/js/controllers', true, /^\.\/.*\.jsx?$/);
-controllerContext.keys().forEach(controllerContext);
-const directiveContext = require.context('../../../ui/js/directives', true, /^\.\/.*\.jsx?$/);
-directiveContext.keys().forEach(directiveContext);
-const serviceContext = require.context('../../../ui/js/services', true, /^\.\/.*\.jsx?$/);
-serviceContext.keys().forEach(serviceContext);
-const componentContext = require.context('../../../ui/js/components', true, /^\.\/.*\.jsx?$/);
-componentContext.keys().forEach(componentContext);
-
const testContext = require.context('./', true, /^\.\/.*\.tests\.jsx?$/);
testContext.keys().forEach(testContext);
diff --git a/tests/ui/unit/react/bugfiler.tests.jsx b/tests/ui/unit/react/bugfiler.tests.jsx
index 58ff09b0c..187640738 100644
--- a/tests/ui/unit/react/bugfiler.tests.jsx
+++ b/tests/ui/unit/react/bugfiler.tests.jsx
@@ -4,7 +4,7 @@ import * as fetchMock from 'fetch-mock';
import { hgBaseUrl, bzBaseUrl } from '../../../../ui/helpers/url';
import { isReftest } from '../../../../ui/helpers/job';
-import BugFiler from '../../../../ui/job-view/details/BugFiler';
+import { BugFilerClass } from '../../../../ui/job-view/details/BugFiler';
describe('BugFiler', () => {
const fullLog = 'https://queue.taskcluster.net/v1/task/AGs4CgN_RnCTb943uQn8NQ/runs/0/artifacts/public/logs/live_backing.log';
@@ -70,7 +70,7 @@ describe('BugFiler', () => {
};
return mount(
- {
reftestUrl={isReftest(selectedJob) ? reftest : ''}
successCallback={successCallback}
jobGroupName={selectedJob.job_group_name}
- notify={{}}
+ notify={() => {}}
/>,
);
};
@@ -211,7 +211,7 @@ describe('BugFiler', () => {
search: 'REFTEST TEST-UNEXPECTED-PASS | flee | floo' },
];
const bugFiler = mount(
- {
reftestUrl={isReftest(selectedJob) ? reftest : ''}
successCallback={successCallback}
jobGroupName={selectedJob.job_group_name}
- notify={{}}
+ notify={() => {}}
/>,
);
diff --git a/ui/entry-index.js b/ui/entry-index.js
index 911b5d895..a51479405 100644
--- a/ui/entry-index.js
+++ b/ui/entry-index.js
@@ -30,7 +30,5 @@ import './job-view/JobView';
import './shared/ShortcutTable';
// Treeherder JS
-import './js/directives/treeherder/main';
-import './js/services/main';
import './js/models/perf/series';
import './js/controllers/main';
diff --git a/ui/entry-logviewer.js b/ui/entry-logviewer.js
index 0f3399d53..a9c8721db 100644
--- a/ui/entry-logviewer.js
+++ b/ui/entry-logviewer.js
@@ -16,8 +16,6 @@ import './js/logviewer';
// Logviewer JS
import './js/directives/treeherder/log_viewer_steps';
-import './js/directives/treeherder/main';
import './js/components/logviewer/logviewer';
-import './js/services/main';
import './js/filters';
import './js/controllers/logviewer';
diff --git a/ui/entry-perf.js b/ui/entry-perf.js
index 3aabf97df..d67c5c2f2 100644
--- a/ui/entry-perf.js
+++ b/ui/entry-perf.js
@@ -27,7 +27,6 @@ import './shared/Login';
// Perf JS
import './js/filters';
-import './js/services/main';
import './js/models/perf/series';
import './js/models/perf/issue_tracker';
import './js/models/perf/performance_framework';
diff --git a/ui/index.html b/ui/index.html
index 9f6bc6cd9..4cfe53a0a 100755
--- a/ui/index.html
+++ b/ui/index.html
@@ -22,7 +22,5 @@
-
-