mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Use rootScope as variable
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
describe("Party Controller", function() {
|
describe("Party Controller", function() {
|
||||||
var scope, ctrl, user, User, groups, $rootScope, $controller;
|
var scope, ctrl, user, User, groups, rootScope, $controller;
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
user = specHelper.newUser(),
|
user = specHelper.newUser(),
|
||||||
@@ -17,7 +17,7 @@ describe("Party Controller", function() {
|
|||||||
|
|
||||||
inject(function(_$rootScope_, _$controller_, Groups){
|
inject(function(_$rootScope_, _$controller_, Groups){
|
||||||
|
|
||||||
$rootScope = _$rootScope_;
|
rootScope = _$rootScope_;
|
||||||
|
|
||||||
scope = _$rootScope_.$new();
|
scope = _$rootScope_.$new();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user