diff --git a/app/controllers/notificationController.js b/app/controllers/notificationController.js index cdc81f3..bd9d2de 100644 --- a/app/controllers/notificationController.js +++ b/app/controllers/notificationController.js @@ -27,7 +27,7 @@ app.controller('NotificationController', function ($controller, $scope, $timeout $scope.forms = {}; - var emptyNotification = { + const emptyNotification = { name: '', body: '', active: false, diff --git a/tests/unit/controllers/notificationControllerTest.js b/tests/unit/controllers/notificationControllerTest.js index 6ba18da..966f235 100644 --- a/tests/unit/controllers/notificationControllerTest.js +++ b/tests/unit/controllers/notificationControllerTest.js @@ -73,7 +73,7 @@ describe('controller: NotificationController', function () { describe('Are the scope methods working as expected', function () { it('resetNotifications should reset notifications', function () { - var notification = new Notification(); + const notification = new Notification(); scope.notificationData = notification; scope.closeModal = function() {}; @@ -97,7 +97,7 @@ describe('controller: NotificationController', function () { expect(notification.clearValidationResults).toHaveBeenCalled(); }); it('createNotification should create a notification', function () { - var notification = new Notification(); + const notification = new Notification(); notification.title = "New Notification"; scope.notificationData = notification; @@ -123,7 +123,7 @@ describe('controller: NotificationController', function () { }); it('updateNotification should update a notification', function () { - var notification = new Notification(); + const notification = new Notification(); var deferred; notification.mock(mockNotification1);