I was able to fix it, I added the angular-mocks twice. But now I'm getting
this error:

14:07:43] Starting 'unit'...

PhantomJS 1.9.8 (Mac OS X) Unit: ApiTokens Controllers Data Functions
should remove a token FAILED

*Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!*

Watchers fired in the last 5 iterations: []

http://errors.angularjs.org/1.3.15/$rootScope/infdig?p0=10&p1=%5B%5D

    at
/Applications/XAMPP/xamppfiles/htdocs/integritas/workspace/trunk/ui/js/libs/angular.js:14349

    at
/Applications/XAMPP/xamppfiles/htdocs/integritas/workspace/trunk/ui/js/libs/angular-mocks.js:1525

    at
/Applications/XAMPP/xamppfiles/htdocs/integritas/workspace/trunk/ui/src/adminTools/apiTokens/apiTokensControllerUnit-spec.js:9

PhantomJS 1.9.8 (Mac OS X): Executed 5 of 5 (1 FAILED) (0.04 secs / 0.115
secs)




On Fri, Mar 20, 2015 at 1:34 PM, Samuel Castro e Silva <
samuelcastrosi...@gmail.com> wrote:

> Hi guys, I'm trying to perform my unit tests using karma + phantomjs, but
> when I try do execute I received this error:
>
> samuelcastro:ui samuel$ gulp unit
>
> [13:28:15] Using gulpfile
> /Applications/XAMPP/xamppfiles/htdocs/integritas/workspace/trunk/ui/gulpfile.js
>
> [13:28:15] Starting 'unit'...
>
> PhantomJS 1.9.8 (Mac OS X): Executed 0 of 5 DISCONNECTED (10.214 secs / 0
> secs)
>
> [13:28:36] 'unit' errored after 21 s
>
> [13:28:36] Error: 1
>
>     at formatError (/usr/local/lib/node_modules/gulp/bin/gulp.js:169:10)
>
>     at Gulp.<anonymous>
> (/usr/local/lib/node_modules/gulp/bin/gulp.js:195:15)
>
>     at Gulp.EventEmitter.emit (events.js:95:17)
>
>     at Gulp.Orchestrator._emitTaskDone
> (/Applications/XAMPP/xamppfiles/htdocs/integritas/workspace/trunk/ui/node_modules/gulp/node_modules/orchestrator/index.js:264:8)
>
>     at
> /Applications/XAMPP/xamppfiles/htdocs/integritas/workspace/trunk/ui/node_modules/gulp/node_modules/orchestrator/index.js:275:23
>
>     at finish
> (/Applications/XAMPP/xamppfiles/htdocs/integritas/workspace/trunk/ui/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:21:8)
>
>     at cb
> (/Applications/XAMPP/xamppfiles/htdocs/integritas/workspace/trunk/ui/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:29:3)
>
>     at removeAllListeners
> (/Applications/XAMPP/xamppfiles/htdocs/integritas/workspace/trunk/ui/node_modules/karma/lib/server.js:220:7)
>
>     at Server.<anonymous>
> (/Applications/XAMPP/xamppfiles/htdocs/integritas/workspace/trunk/ui/node_modules/karma/lib/server.js:231:9)
>
>     at Server.g (events.js:175:14)
>
>
> My versions:
>
> Karma version: 0.12.31
>
> PhantomJS: 1.9.8
>
> Angular/Mocks: 1.3.15
>
>
> Some idea?
> --
>
> Samuel Castro
>
>
>


-- 

Samuel Castro

Full Stack Developer

(37) 9110-8850

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to