2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-30 15:24:11 +03:00

Changing btoa ponyfill to improve testing

This commit is contained in:
Matt Zabriskie
2016-03-03 22:43:16 -07:00
parent 6d3d266616
commit 7041775943
4 changed files with 15 additions and 8 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
var axios = require('../../index');
var validateInvalidCharacterError = require('./__validateInvalidCharacterError');
module.exports = function setupBasicAuthTest() {
beforeEach(function () {
@@ -36,7 +37,7 @@ module.exports = function setupBasicAuthTest() {
}).then(function(response) {
done(new Error('Should not succeed to make a HTTP Basic auth request with non-latin1 chars in credentials.'));
}).catch(function(error) {
expect(error.message).toEqual('INVALID_CHARACTER_ERR: DOM Exception 5');
validateInvalidCharacterError(error);
done();
});
});