2
0
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:
Matt Zabriskie
2016-03-04 10:35:05 -07:00
parent c181d8ade9
commit 371b82a2a0
11 changed files with 106 additions and 251 deletions
+2 -4
View File
@@ -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'