diff --git a/packages/frontend/tests/unit/controllers/admin-dashboard-test.js b/packages/frontend/tests/unit/controllers/admin-dashboard-test.js index e3b1d1b45f..b362db30b9 100644 --- a/packages/frontend/tests/unit/controllers/admin-dashboard-test.js +++ b/packages/frontend/tests/unit/controllers/admin-dashboard-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/admin-dashboard'; module('Unit | Controller | AdminDashboard ', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:admin-dashboard', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { var controller = this.owner.lookup('controller:admin-dashboard'); diff --git a/packages/frontend/tests/unit/controllers/assign-students-test.js b/packages/frontend/tests/unit/controllers/assign-students-test.js index c30a47a47a..94434e0869 100644 --- a/packages/frontend/tests/unit/controllers/assign-students-test.js +++ b/packages/frontend/tests/unit/controllers/assign-students-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/assign-students'; module('Unit | Controller | assign students', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:assign-students', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:assign-students'); diff --git a/packages/frontend/tests/unit/controllers/courses-test.js b/packages/frontend/tests/unit/controllers/courses-test.js index 0c84a84fb3..a813cfe7ca 100644 --- a/packages/frontend/tests/unit/controllers/courses-test.js +++ b/packages/frontend/tests/unit/controllers/courses-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/courses'; module('CoursesController', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:courses', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { var controller = this.owner.lookup('controller:courses'); diff --git a/packages/frontend/tests/unit/controllers/curriculum-inventory-report/index-test.js b/packages/frontend/tests/unit/controllers/curriculum-inventory-report/index-test.js index 7cf210ae89..a0ca90f53e 100644 --- a/packages/frontend/tests/unit/controllers/curriculum-inventory-report/index-test.js +++ b/packages/frontend/tests/unit/controllers/curriculum-inventory-report/index-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/curriculum-inventory-report/index'; module('Unit | Controller | curriculum inventory report/index', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:curriculum-inventory-report/index', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:curriculum-inventory-report/index'); diff --git a/packages/frontend/tests/unit/controllers/curriculum-inventory-report/rollover-test.js b/packages/frontend/tests/unit/controllers/curriculum-inventory-report/rollover-test.js index bbbe0a83e5..6a3c62dd8d 100644 --- a/packages/frontend/tests/unit/controllers/curriculum-inventory-report/rollover-test.js +++ b/packages/frontend/tests/unit/controllers/curriculum-inventory-report/rollover-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/curriculum-inventory-report/rollover'; module('Unit | Controller | curriculum inventory report/rollover', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:curriculum-inventory-report/rollover', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:curriculum-inventory-report/rollover'); diff --git a/packages/frontend/tests/unit/controllers/curriculum-inventory-reports-test.js b/packages/frontend/tests/unit/controllers/curriculum-inventory-reports-test.js index 3c31057049..a68a502415 100644 --- a/packages/frontend/tests/unit/controllers/curriculum-inventory-reports-test.js +++ b/packages/frontend/tests/unit/controllers/curriculum-inventory-reports-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/curriculum-inventory-reports'; module('Unit | Controller | curriculum-inventory-reports', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:curriculum-inventory-reports', Controller); + }); + test('it renders', async function (assert) { const controller = this.owner.lookup('controller:curriculum-inventory-reports'); assert.ok(controller); diff --git a/packages/frontend/tests/unit/controllers/curriculum-inventory-sequence-block-test.js b/packages/frontend/tests/unit/controllers/curriculum-inventory-sequence-block-test.js index 992e1765ab..35470e3399 100644 --- a/packages/frontend/tests/unit/controllers/curriculum-inventory-sequence-block-test.js +++ b/packages/frontend/tests/unit/controllers/curriculum-inventory-sequence-block-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/curriculum-inventory-sequence-block'; module('Unit | Controller | curriculum inventory sequence block', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:curriculum-inventory-sequence-block', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:curriculum-inventory-sequence-block'); diff --git a/packages/frontend/tests/unit/controllers/instructor-groups-test.js b/packages/frontend/tests/unit/controllers/instructor-groups-test.js index 1d0329ca18..c6efe6e848 100644 --- a/packages/frontend/tests/unit/controllers/instructor-groups-test.js +++ b/packages/frontend/tests/unit/controllers/instructor-groups-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/instructor-groups'; module('Unit | Controller | InstructorGroups ', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:instructor-groups', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { - var controller = this.owner.lookup('controller:instructorGroups'); + var controller = this.owner.lookup('controller:instructor-groups'); assert.ok(controller); }); }); diff --git a/packages/frontend/tests/unit/controllers/learner-group-test.js b/packages/frontend/tests/unit/controllers/learner-group-test.js index af7d1538a0..3632e496f7 100644 --- a/packages/frontend/tests/unit/controllers/learner-group-test.js +++ b/packages/frontend/tests/unit/controllers/learner-group-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/learner-groups'; module('Unit | Controller | learner group', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:learner-group', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:learner-group'); diff --git a/packages/frontend/tests/unit/controllers/learner-groups-test.js b/packages/frontend/tests/unit/controllers/learner-groups-test.js index 48a1525f56..4338cf6568 100644 --- a/packages/frontend/tests/unit/controllers/learner-groups-test.js +++ b/packages/frontend/tests/unit/controllers/learner-groups-test.js @@ -1,12 +1,17 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/learner-groups'; module('Unit | Controller | LearnerGroups ', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:learner-groups', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { - var controller = this.owner.lookup('controller:learnerGroups'); + var controller = this.owner.lookup('controller:learner-groups'); assert.ok(controller); }); }); diff --git a/packages/frontend/tests/unit/controllers/pending-user-updates-test.js b/packages/frontend/tests/unit/controllers/pending-user-updates-test.js index 4ac1c89352..9eb35fddd2 100644 --- a/packages/frontend/tests/unit/controllers/pending-user-updates-test.js +++ b/packages/frontend/tests/unit/controllers/pending-user-updates-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/pending-user-updates'; module('Unit | Controller | pending user updates', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:pending-user-updates', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:pending-user-updates'); diff --git a/packages/frontend/tests/unit/controllers/program-test.js b/packages/frontend/tests/unit/controllers/program-test.js index e01fc7f996..4913c243c9 100644 --- a/packages/frontend/tests/unit/controllers/program-test.js +++ b/packages/frontend/tests/unit/controllers/program-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/program'; module('Unit | Controller | Program ', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:program', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { var controller = this.owner.lookup('controller:program'); diff --git a/packages/frontend/tests/unit/controllers/reports-test.js b/packages/frontend/tests/unit/controllers/reports-test.js index fcdf05cc07..4387823580 100644 --- a/packages/frontend/tests/unit/controllers/reports-test.js +++ b/packages/frontend/tests/unit/controllers/reports-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'frontend/tests/helpers'; +import Controller from 'frontend/controllers/reports'; module('Unit | Controller | reports', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:reports', Controller); + }); + // TODO: Replace this with your real tests. test('it exists', function (assert) { let controller = this.owner.lookup('controller:reports'); diff --git a/packages/frontend/tests/unit/controllers/reports/subject.js b/packages/frontend/tests/unit/controllers/reports/subject.js deleted file mode 100644 index d973437125..0000000000 --- a/packages/frontend/tests/unit/controllers/reports/subject.js +++ /dev/null @@ -1,12 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Controller | reports/subject', function (hooks) { - setupTest(hooks); - - // TODO: Replace this with your real tests. - test('it exists', function (assert) { - let controller = this.owner.lookup('controller:reports/subject'); - assert.ok(controller); - }); -}); diff --git a/packages/frontend/tests/unit/controllers/school-test.js b/packages/frontend/tests/unit/controllers/school-test.js index d6a7abc5ef..ba0c20d250 100644 --- a/packages/frontend/tests/unit/controllers/school-test.js +++ b/packages/frontend/tests/unit/controllers/school-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/school'; module('Unit | Controller | school', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:school', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:school'); diff --git a/packages/frontend/tests/unit/controllers/search-test.js b/packages/frontend/tests/unit/controllers/search-test.js index 36be20709d..71d9d07f68 100644 --- a/packages/frontend/tests/unit/controllers/search-test.js +++ b/packages/frontend/tests/unit/controllers/search-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/search'; module('Unit | Controller | search', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:search', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:search'); diff --git a/packages/frontend/tests/unit/controllers/user-test.js b/packages/frontend/tests/unit/controllers/user-test.js index cad346ab4c..fcade96924 100644 --- a/packages/frontend/tests/unit/controllers/user-test.js +++ b/packages/frontend/tests/unit/controllers/user-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'frontend/controllers/user'; module('Unit | Controller | user', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:user', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:user'); diff --git a/packages/test-app/tests/unit/controllers/course-materials-test.js b/packages/test-app/tests/unit/controllers/course-materials-test.js index 096ea8b97b..326a731e8d 100644 --- a/packages/test-app/tests/unit/controllers/course-materials-test.js +++ b/packages/test-app/tests/unit/controllers/course-materials-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'ilios-common/controllers/course-materials'; module('Unit | Controller | course-materials', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:course-materials', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:course-materials'); diff --git a/packages/test-app/tests/unit/controllers/course-test.js b/packages/test-app/tests/unit/controllers/course-test.js index c62b9dd08c..be291129ab 100644 --- a/packages/test-app/tests/unit/controllers/course-test.js +++ b/packages/test-app/tests/unit/controllers/course-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'ilios-common/controllers/course'; module('Unit | Controller | course', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:course', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:course'); diff --git a/packages/test-app/tests/unit/controllers/course-visualize-instructors-test.js b/packages/test-app/tests/unit/controllers/course-visualize-instructors-test.js index b0d6c5a77c..96387c6f9a 100644 --- a/packages/test-app/tests/unit/controllers/course-visualize-instructors-test.js +++ b/packages/test-app/tests/unit/controllers/course-visualize-instructors-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'ilios-common/controllers/course-visualize-instructors'; module('Unit | Controller | course-visualize-instructors', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:course-visualize-instructors', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:course-visualize-instructors'); diff --git a/packages/test-app/tests/unit/controllers/course/index-test.js b/packages/test-app/tests/unit/controllers/course/index-test.js index 756e20aa52..05b7cb30b3 100644 --- a/packages/test-app/tests/unit/controllers/course/index-test.js +++ b/packages/test-app/tests/unit/controllers/course/index-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'ilios-common/controllers/course/index'; module('Unit | Controller | course/index', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:course/index', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:course/index'); diff --git a/packages/test-app/tests/unit/controllers/course/publishall-test.js b/packages/test-app/tests/unit/controllers/course/publishall-test.js index 9b496ab368..96361c5229 100644 --- a/packages/test-app/tests/unit/controllers/course/publishall-test.js +++ b/packages/test-app/tests/unit/controllers/course/publishall-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'ilios-common/controllers/course/publishall'; module('Unit | Controller | course/publishall', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:course/publishal', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:course/publishall'); diff --git a/packages/test-app/tests/unit/controllers/course/rollover-test.js b/packages/test-app/tests/unit/controllers/course/rollover-test.js index dc99667eb8..ed2fbbeef3 100644 --- a/packages/test-app/tests/unit/controllers/course/rollover-test.js +++ b/packages/test-app/tests/unit/controllers/course/rollover-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'ilios-common/controllers/course/rollover'; module('Unit | Controller | course/rollover', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:course/rollover', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:course/rollover'); diff --git a/packages/test-app/tests/unit/controllers/dashboard/calendar-test.js b/packages/test-app/tests/unit/controllers/dashboard/calendar-test.js index f6ac960bef..caa98721a5 100644 --- a/packages/test-app/tests/unit/controllers/dashboard/calendar-test.js +++ b/packages/test-app/tests/unit/controllers/dashboard/calendar-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'ilios-common/controllers/dashboard/calendar'; module('Unit | Controller | dashboard/calendar', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:dashboard/calendar', Controller); + }); + // TODO: Replace this with your real tests. test('it exists', function (assert) { let controller = this.owner.lookup('controller:dashboard/calendar'); diff --git a/packages/test-app/tests/unit/controllers/dashboard/materials-test.js b/packages/test-app/tests/unit/controllers/dashboard/materials-test.js index 3dcbca329e..a8d02368e6 100644 --- a/packages/test-app/tests/unit/controllers/dashboard/materials-test.js +++ b/packages/test-app/tests/unit/controllers/dashboard/materials-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'ilios-common/controllers/dashboard/materials'; module('Unit | Controller | dashboard/materials', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:dashboard/materials', Controller); + }); + // TODO: Replace this with your real tests. test('it exists', function (assert) { let controller = this.owner.lookup('controller:dashboard/materials'); diff --git a/packages/test-app/tests/unit/controllers/events-test.js b/packages/test-app/tests/unit/controllers/events-test.js index 4851b4af72..b53ec65815 100644 --- a/packages/test-app/tests/unit/controllers/events-test.js +++ b/packages/test-app/tests/unit/controllers/events-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'test-app/tests/helpers'; +import Controller from 'ilios-common/controllers/events'; module('Unit | Controller | events', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:events', Controller); + }); + // TODO: Replace this with your real tests. test('it exists', function (assert) { let controller = this.owner.lookup('controller:events'); diff --git a/packages/test-app/tests/unit/controllers/print-course-test.js b/packages/test-app/tests/unit/controllers/print-course-test.js index d432012447..4292133d8b 100644 --- a/packages/test-app/tests/unit/controllers/print-course-test.js +++ b/packages/test-app/tests/unit/controllers/print-course-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'ilios-common/controllers/print-course'; module('Unit | Controller | print-course', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:print-course', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:print-course'); diff --git a/packages/test-app/tests/unit/controllers/session/copy-test.js b/packages/test-app/tests/unit/controllers/session/copy-test.js index 1241c51b1e..b0261e2259 100644 --- a/packages/test-app/tests/unit/controllers/session/copy-test.js +++ b/packages/test-app/tests/unit/controllers/session/copy-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'ilios-common/controllers/session/copy'; module('Unit | Controller | session/copy', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:session/copy', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:session/copy'); diff --git a/packages/test-app/tests/unit/controllers/session/index-test.js b/packages/test-app/tests/unit/controllers/session/index-test.js index f28d98b65c..a28d4c61b0 100644 --- a/packages/test-app/tests/unit/controllers/session/index-test.js +++ b/packages/test-app/tests/unit/controllers/session/index-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'ilios-common/controllers/session/index'; module('Unit | Controller | session/index', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:session/index', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:session/index'); diff --git a/packages/test-app/tests/unit/controllers/weeklyevents-test.js b/packages/test-app/tests/unit/controllers/weeklyevents-test.js index b5f03a5493..b8b7935360 100644 --- a/packages/test-app/tests/unit/controllers/weeklyevents-test.js +++ b/packages/test-app/tests/unit/controllers/weeklyevents-test.js @@ -1,9 +1,14 @@ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; +import Controller from 'ilios-common/controllers/weeklyevents'; module('Unit | Controller | weeklyevents', function (hooks) { setupTest(hooks); + hooks.beforeEach(function () { + this.owner.register('controller:weeklyevents', Controller); + }); + // Replace this with your real tests. test('it exists', function (assert) { const controller = this.owner.lookup('controller:weeklyevents');