hyperactive
Advanced tools
Comparing version 1.0.2 to 2.0.0
{ | ||
"name": "hyperactive", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "Creates mocha tests for all hypermedia of your API", | ||
@@ -5,0 +5,0 @@ "author": "Tabcorp Digital Technology Team", |
@@ -24,4 +24,6 @@ # hyperactive | ||
url: "http://myApiEndpoint.com/route", | ||
headers: { | ||
Accept: "application/json" | ||
options: { | ||
headers: { | ||
Accept: "application/json" | ||
} | ||
} | ||
@@ -49,11 +51,13 @@ }); | ||
url: "http://myApiEndpoint.com/route", | ||
headers: { | ||
Accept: "application/json" | ||
}, | ||
basicAuth : { | ||
user: "myUsername", | ||
pass: "myPassword" | ||
}, | ||
secureProtocol : "SSLv3_client_method", | ||
strictSSL : false | ||
options: { | ||
headers: { | ||
Accept: "application/json" | ||
}, | ||
auth : { | ||
user: "myUsername", | ||
pass: "myPassword" | ||
}, | ||
secureProtocol : "SSLv3_client_method", | ||
strictSSL : false | ||
} | ||
}); | ||
@@ -64,2 +68,4 @@ }) | ||
*Note:* `hyperactive` uses [unirest](https://github.com/Mashape/unirest-nodejs) to send requests. The `options` hash can contain [any valid Request option](https://github.com/Mashape/unirest-nodejs#requestoptions) from unirest. | ||
### - How does it find hypermedia links? | ||
@@ -111,4 +117,6 @@ | ||
url: "http://myApiEndpoint.com/route", | ||
headers: { | ||
Accept: "application/json" | ||
options: { | ||
headers: { | ||
Accept: "application/json" | ||
}, | ||
}, | ||
@@ -161,4 +169,6 @@ getLinks: getLinks | ||
url: "http://myApiEndpoint.com/route", | ||
headers: { | ||
Accept: "application/json" | ||
options: { | ||
headers: { | ||
Accept: "application/json" | ||
}, | ||
}, | ||
@@ -177,5 +187,7 @@ validate: validate | ||
url: "http://myApiEndpoint.com/route", | ||
headers: { | ||
Accept: "application/json" | ||
}, | ||
options: { | ||
headers: { | ||
Accept: "application/json" | ||
}, | ||
} | ||
samplePercentage: 75 | ||
@@ -182,0 +194,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
8159
201