|
@@ -157,7 +157,7 @@ describe('request headers records should be cleared by open()', (report, done) =
|
157
|
157
|
if(this.readyState == 4) {
|
158
|
158
|
report(<Assert key="headers should be cleared by open()"
|
159
|
159
|
expect={"200"}
|
160
|
|
- actual={this.response.value}/>)
|
|
160
|
+ actual={JSON.parse(this.response).value}/>)
|
161
|
161
|
done()
|
162
|
162
|
}
|
163
|
163
|
}
|
|
@@ -243,7 +243,7 @@ describe('upload progress event test', (report, done) => {
|
243
|
243
|
report(
|
244
|
244
|
<Assert key="reponse should correct"
|
245
|
245
|
expect={time}
|
246
|
|
- actual={Math.floor(xhr.response.time)}/>,
|
|
246
|
+ actual={Math.floor(JSON.parse(xhr.response).time)}/>,
|
247
|
247
|
<Assert key="responseType should correct"
|
248
|
248
|
expect={'json'}
|
249
|
249
|
actual={xhr.responseType}/>)
|