Skip to content

Instantly share code, notes, and snippets.

@shenst1
Created January 14, 2014 18:37
Show Gist options
  • Save shenst1/8423331 to your computer and use it in GitHub Desktop.
Save shenst1/8423331 to your computer and use it in GitHub Desktop.
Error output for jasmine-jquery specs v2.0 standalone and gem errors
1 spec, 1 failure
Spec List | Failures
My Feature should add numbers
TypeError: Expecting a function in instanceof check, but got 2
TypeError: Expecting a function in instanceof check, but got 2
at Array.<anonymous> (http://localhost:8888/__spec__/helpers/jasmine-jquery.js:722:25)
at eq (http://localhost:8888/__jasmine__/jasmine.js:1794:48)
at Object.equals (http://localhost:8888/__jasmine__/jasmine.js:1745:14)
at compare (http://localhost:8888/__jasmine__/jasmine.js:2107:28)
at Expectation.toEqual (http://localhost:8888/__jasmine__/jasmine.js:1192:35)
at Object.<anonymous> (http://localhost:8888/__spec__/testspec.js:3:17)
at attemptSync (http://localhost:8888/__jasmine__/jasmine.js:1510:12)
at QueueRunner.run (http://localhost:8888/__jasmine__/jasmine.js:1498:9)
at QueueRunner.execute (http://localhost:8888/__jasmine__/jasmine.js:1485:10)
at Spec.Env.queueRunnerFactory (http://localhost:8888/__jasmine__/jasmine.js:518:35)
TypeError: undefined is not a function
TypeError: undefined is not a function
at jasmine.Fixtures.cleanUp (http://localhost:8888/__spec__/helpers/jasmine-jquery.js:88:5)
at Object.<anonymous> (http://localhost:8888/__spec__/helpers/jasmine-jquery.js:749:27)
at attemptSync (http://localhost:8888/__jasmine__/jasmine.js:1510:12)
at QueueRunner.run (http://localhost:8888/__jasmine__/jasmine.js:1498:9)
at QueueRunner.execute (http://localhost:8888/__jasmine__/jasmine.js:1485:10)
at Spec.Env.queueRunnerFactory (http://localhost:8888/__jasmine__/jasmine.js:518:35)
at Spec.execute (http://localhost:8888/__jasmine__/jasmine.js:306:10)
at Object.<anonymous> (http://localhost:8888/__jasmine__/jasmine.js:1708:37)
at attemptAsync (http://localhost:8888/__jasmine__/jasmine.js:1520:12)
at QueueRunner.run (http://localhost:8888/__jasmine__/jasmine.js:1496:16)
7 specs, 1 failure
Spec List | Failures
experimentation allows us to search with Css selectors
Expected { 0 : HTMLNode, length : 1 } to be '#container'.
Error: Expected { 0 : HTMLNode, length : 1 } to be '#container'.
at stack (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:1293:17)
at buildExpectationResult (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:1270:14)
at Spec.Env.expectationResultFactory (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:484:18)
at Spec.addExpectationResult (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:260:46)
at Expectation.addExpectationResult (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:442:21)
at Expectation.toBe (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:1209:12)
at Object.<anonymous> (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/spec/TestSpec.js:12:18)
at attemptSync (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:1510:12)
at QueueRunner.run (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:1498:9)
at QueueRunner.execute (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:1485:10)
TypeError: Object [object Object] has no method 'indexOf'
TypeError: Object [object Object] has no method 'indexOf'
at Object.contains (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:1759:23)
at compare (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:2087:22)
at Expectation.toContain (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:1192:35)
at Object.<anonymous> (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/spec/TestSpec.js:13:18)
at attemptSync (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:1510:12)
at QueueRunner.run (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:1498:9)
at QueueRunner.execute (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:1485:10)
at Spec.Env.queueRunnerFactory (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:518:35)
at Spec.execute (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:306:10)
at Object.<anonymous> (file:///C:/Users/v-anshen/Documents/Projects%20Current/testing/standalone/lib/jasmine-2.0.0/jasmine.js:1708:37)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment