-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to access Promise in test code ? #180
Comments
I can't do it from client using $.get because the endpoint redirects to another domain without CORS headers. |
@welelay Have you tried |
Yes, with no success:
on top of the test script fails with
|
@welelay Does installing |
nope |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to test a rest api with gagarin.
I figured I could use the 'http' module of node.js.
No big deal :
require('http');
at begining of test files.But then, I have to return a promise in my test, like
It fails with
Promise is undefined
.I can't find a way to grab promise from meteor, or with a require.
The text was updated successfully, but these errors were encountered: