Fix various import: CurrentUser

This commit is contained in:
Jean-Baptiste Bellet
2023-02-03 16:25:35 +01:00
parent a486a08bfc
commit 236e77efd4

View File

@@ -2,12 +2,14 @@ describe "DetailsCtrl", ->
ctrl = null
scope = null
order = null
CurrentUser = null
beforeEach ->
module("Darkswarm")
inject ($controller, $rootScope) ->
scope = $rootScope.$new()
ctrl = $controller 'DetailsCtrl', {$scope: scope}
CurrentUser = { id: 1 }
ctrl = $controller 'DetailsCtrl', { $scope: scope, CurrentUser: CurrentUser }
it "finds a field by path", ->