angular/jasminewd

Promises are not unwrapped by jasminewd for jasmine 1.x

Opened this issue · 0 comments

Using the same spec file as in #34, we get this error on the first test:

  1) unwrap promises q
   Message:
     Expected 7 to be { promiseDispatch : Function, inspect : Function, valueOf : Function }.
   Stacktrace:
     Error: Expected 7 to be { promiseDispatch : Function, inspect : Function, valueOf : Function }.
    at null.toBe (/usr/local/google/home/sjelin/node_modules/jasminewd/index.js:248:11)
    at null.<anonymous> (/usr/local/google/home/sjelin/t/s.js:8:15)
    at /usr/local/google/home/sjelin/node_modules/jasminewd/index.js:94:14
    at promise.ControlFlow.runInFrame_ (/usr/local/google/home/sjelin/node_modules/selenium-webdriver/lib/goog/../webdriver/promise.js:1857:20)
    at promise.ControlFlow.runEventLoop_ (/usr/local/google/home/sjelin/node_modules/selenium-webdriver/lib/goog/../webdriver/promise.js:1729:8)
    at eval (/usr/local/google/home/sjelin/node_modules/selenium-webdriver/lib/goog/../webdriver/promise.js:2043:12)
    at goog.async.run.processWorkQueue (/usr/local/google/home/sjelin/node_modules/selenium-webdriver/lib/goog/async/run.js:130:15)

and this for the second:

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory

Executed using:

var minj = require('minijasminenode');
require('jasminewd');
minj.executeSpecs({specs: ['/usr/local/google/home/sjelin/t/s.js']});