100% coverage

This commit is contained in:
ChenL
2018-01-12 10:53:43 +08:00
committed by Jun Yang
parent 7b696ed0d2
commit 925df9a9b5
3 changed files with 48 additions and 40 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ var _engine = {
}
}
xhr.onerror = () => {
reject(new Error(xhr.statusText))
reject(new Error('An error occurred whilst sending the response.'))
}
xhr.open('GET', fullUrl)
xhr.send()