mirror of
https://github.com/tenrok/axios.git
synced 2026-05-27 14:47:43 +03:00
Cleaning up tests a bit
This commit is contained in:
@@ -11,8 +11,7 @@ module.exports = function setupBasicAuthTest() {
|
||||
});
|
||||
|
||||
it('should accept HTTP Basic auth with username/password', function (done) {
|
||||
axios({
|
||||
url: '/foo',
|
||||
axios('/foo', {
|
||||
auth: {
|
||||
username: 'Aladdin',
|
||||
password: 'open sesame'
|
||||
@@ -28,8 +27,7 @@ module.exports = function setupBasicAuthTest() {
|
||||
});
|
||||
|
||||
it('should fail to encode HTTP Basic auth credentials with non-Latin1 characters', function (done) {
|
||||
axios({
|
||||
url: '/foo',
|
||||
axios('/foo', {
|
||||
auth: {
|
||||
username: 'Aladßç£☃din',
|
||||
password: 'open sesame'
|
||||
|
||||
Reference in New Issue
Block a user