提交 ac129358 编写于 作者: M Mislav Marohnić

Merge pull request #216 from bryanrsmith/fix-assertion

Fix incorrect assertion
......@@ -372,7 +372,7 @@ suite('Response', function() {
var r = new Response('{"foo":"bar"}', {headers: {'content-type': 'application/json'}});
assert.equal(r.headers instanceof Headers, true);
return r.json().then(function(json){
assert(json.foo, 'bar');
assert.equal(json.foo, 'bar');
return json;
})
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册