2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +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
+3 -1
View File
@@ -1,4 +1,5 @@
var __btoa = require('../../../lib/helpers/btoa');
var validateInvalidCharacterError = require('../__validateInvalidCharacterError');
describe('btoa polyfill', function () {
it('should behave the same as native window.btoa', function () {
@@ -22,6 +23,7 @@ describe('btoa polyfill', function () {
err2 = e;
}
expect(err1.message).toEqual(err2.message);
validateInvalidCharacterError(err1);
validateInvalidCharacterError(err2);
});
});