提交 8c18ecc5 编写于 作者: D David Graham

Test get method.

上级 c38cfe25
......@@ -15,8 +15,9 @@ MockXHR.responses = {
window.XMLHttpRequest = MockXHR
asyncTest('populates response body', 2, function() {
asyncTest('populates response body', 3, function() {
fetch('/hello').then(function(response) {
equal(MockXHR.last().method, 'GET')
equal(response.status, 200)
equal(response.body, 'hi')
start()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册