Commit 4e83ea56 authored by Gergely Ujvari's avatar Gergely Ujvari

Fix notifier tests

Many were broken because of the refactoring
parent ad710526
......@@ -10,6 +10,7 @@ describe 'h.auth.AccountController', ->
fakeFormHelpers = null
editProfilePromise = null
disableUserPromise = null
profilePromise = null
createController = null
beforeEach module('h.auth')
......@@ -37,8 +38,10 @@ describe 'h.auth.AccountController', ->
disableUserPromise = {then: sandbox.stub()}
editProfilePromise = {then: sandbox.stub()}
profilePromise = {then: sandbox.stub()}
fakeSession.edit_profile = sandbox.stub().returns($promise: editProfilePromise)
fakeSession.disable_user = sandbox.stub().returns($promise: disableUserPromise)
fakeSession.profile = sandbox.stub().returns($promise: profilePromise)
createController = ->
$controller('AccountController', {$scope: $scope})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment