 							headers:
 								'Content-Type': 'application/json'
 
-					afterEach ->
-						fetchMock.restore()
-
 					it 'should be rejected with the error message', ->
 						promise = request.send
 							method: 'GET'

						headers:
							'Content-Type': 'application/json'

				afterEach ->
					fetchMock.restore()

				it 'should eventually return the body', ->
					promise = request.send
						method: 'PATCH'


			beforeEach ->
				fetchMock.get('https://api.resin.io/foo', 'Hello World')

			it 'should resolve with the plain body', ->
				promise = request.send
