angular-mock-record
Advanced tools
Comparing version 1.5.2 to 1.5.3
{ | ||
"name": "angular-mock-record", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "An angular / protractor framework that mocks and records requests. Requests can be manually mocked or recorded like VCR.", | ||
@@ -5,0 +5,0 @@ "main": "server.js", |
@@ -20,2 +20,7 @@ const Http = require('./http.js'); | ||
).then(data => { | ||
if (!data) { | ||
return resolve(); | ||
} | ||
const SAMLResponse = data.body.split(samlInputStart)[1].split(samlInputEnd)[0].replace(`"`,``).trim(); | ||
@@ -22,0 +27,0 @@ |
@@ -43,7 +43,2 @@ class Http { | ||
}, (error, response, body) => { | ||
if (error) { | ||
reject(error); | ||
} | ||
if (response) { | ||
@@ -56,3 +51,3 @@ resolve({ | ||
} else { | ||
reject(); | ||
resolve(); | ||
} | ||
@@ -59,0 +54,0 @@ |
19812