mirror of
https://github.com/axios/axios.git
synced 2026-04-13 15:01:54 +08:00
21 lines
393 B
JavaScript
21 lines
393 B
JavaScript
var window_btoa;
|
|
|
|
describe('basicAuth with btoa polyfill', function () {
|
|
beforeAll(function() {
|
|
window_btoa = window.btoa;
|
|
window.btoa = undefined;
|
|
});
|
|
|
|
afterAll(function() {
|
|
window.btoa = window_btoa;
|
|
window_btoa = undefined;
|
|
});
|
|
|
|
it('should not have native window.btoa', function () {
|
|
expect(window.btoa).toEqual(undefined);
|
|
});
|
|
|
|
setupBasicAuthTest();
|
|
});
|
|
|