Stopped overriding the ping method provided by the 1.0 API, but it didn't match the "castExists" regex so...
Fixed the lack of castExists for ping/1.0 by removing castExists all together from the API. It was the case anyway that all HEAD requests needed to be cast, so now the clientAction module will set that param when the spec is set to make HEAD requests. The transport.request still expects that parameter. Switched the apiVersion implementation to use funcEnum, and exposed the options on the Client constructor. Docs to come.
This commit is contained in:
@ -559,9 +559,9 @@ describe('Client Action runner', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('passes castExists', function (done) {
|
||||
it('sets castExists when the method in the spec is HEAD', function (done) {
|
||||
var action = makeClientAction({
|
||||
castExists: true
|
||||
method: 'HEAD'
|
||||
});
|
||||
|
||||
action({}, function (err, params) {
|
||||
|
||||
Reference in New Issue
Block a user