Noah-Huppert / NoahHuppert.com

Personal website.
https://noahh.io
0 stars 0 forks source link

ApiEntryPoint.call() Test promise not firing callbacks #13

Closed Noah-Huppert closed 9 years ago

Noah-Huppert commented 9 years ago

In the ts-test-suite branch in the ApiEntryPoint test file.

When you call ApiEntryPoint.call() it does not seam to fire the callbacks for the stage.

When I dump the Promise after the test has timed out, it looks like neither stage has been fired. However when I tell ApiEntryPoint.call() to output to log when it fires a stage it is shown that it does in fact fire stages.

Noah-Huppert commented 9 years ago

I might have to define the callback method with

options.complete = => {
...
}
Noah-Huppert commented 9 years ago

This error only seams to be happening in the test suite.

Possible Solution: Find different test runner

Noah-Huppert commented 9 years ago

Fixed by switching to a grunt jasmine runner