Skip to content

Commit

Permalink
Test get method.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgraham committed Oct 13, 2014
1 parent c38cfe2 commit 8c18ecc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8c18ecc

Please sign in to comment.