Closed vanraizen closed 9 years ago
You should use this method by passing the data to the helper method that you are using.
lt.describe.whenCalledRemotely("POST", "/api/test", {
key1: "value1"
}, function() {
lt.it.shouldBeAllowed();
});
Good catch, I'm an idiot :)
Thanks!
I'm trying to write a test case that passes arguments into a POST:
But the arguments never get included with any HTTP request.
In the code it is accepting args here:
But when a remote is made there is no use of this.args anywhere:
I fixed the problem locally by changing the last part of the function to:
I just started looking at this library yesterday so I could be doing something wrong. I'm not sure at this point. Any help is appreciated, thanks!