Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
ciwyaitd committed May 15, 2017
1 parent 78b54bc commit a9f61c1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/http.test.js
@@ -1,7 +1,7 @@
/**
* Test case
* @author vfasky<vfasky@gmail.com>
*
*
**/
'use strict'

Expand All @@ -26,7 +26,7 @@ describe('weex-http Test', () => {
it('Set config', () => {
weexHttp.config = { baseURL: 'http://httpbin.org' }
})

methods.forEach((method) => {
let httpMethod = String(method).toLocaleLowerCase()

Expand Down Expand Up @@ -64,9 +64,9 @@ describe('weex-http Test', () => {
})

it(method + ' Object', (done) => {
let args = {
let args = {
test: {
obj: ['weex-http', 'weex', 'vue']
obj: ['weex-http', 'weex', 'vue']
}
}
weexHttp[httpMethod]('/' + httpMethod, args).then((res) => {
Expand Down Expand Up @@ -109,7 +109,7 @@ describe('weex-http Test', () => {
it(method, (done) => {
let args = { test: 'weex-http' }
http[httpMethod](httpMethod, args).then((res) => {

let data = JSON.parse(res.data)

let resData = data.args
Expand Down Expand Up @@ -141,9 +141,9 @@ describe('weex-http Test', () => {
})

it(method + ' Object', (done) => {
let args = {
let args = {
test: {
obj: ['weex-http', 'weex', 'vue']
obj: ['weex-http', 'weex', 'vue']
}
}
http[httpMethod](httpMethod, args).then((res) => {
Expand Down

0 comments on commit a9f61c1

Please sign in to comment.