Sfoglia il codice sorgente

fixed unit test that broke after moving colors array

Torkel Ödegaard 11 anni fa
parent
commit
59c7edfd90
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/test/specs/helpers.js

+ 2 - 2
src/test/specs/helpers.js

@@ -37,8 +37,8 @@ define([
           }
         };
 
-        self.scope.colors = [];
-        for (var i = 0; i < 50; i++) { self.scope.colors.push('#' + i); }
+        $rootScope.colors = [];
+        for (var i = 0; i < 50; i++) { $rootScope.colors.push('#' + i); }
 
         self.$q = $q;
         self.scope.skipDataOnInit = true;