Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 1ec094d

Browse files
committed
Fix XMLHttpRequest test case
1 parent aacc8d3 commit 1ec094d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test-xmlhttp.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,14 @@ describe('request headers records should be cleared by open()', (report, done) =
149149
let xhr = new XMLHttpRequest()
150150
xhr.open('GET', `${TEST_SERVER_URL}/xhr-header`)
151151
xhr.setRequestHeader('value', '100')
152+
xhr.setRequestHeader('cache-control', 'no-store')
152153
xhr.open('GET', `${TEST_SERVER_URL}/xhr-header`)
153154
xhr.setRequestHeader('value', '200')
154155
xhr.send()
155156
xhr.onreadystatechange = function() {
156157
if(this.readyState == 4) {
157158
report(<Assert key="headers should be cleared by open()"
158-
expect={'200'}
159+
expect={"200"}
159160
actual={this.response.value}/>)
160161
done()
161162
}

0 commit comments

Comments
 (0)