-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix ArrayBuffer support #93
Conversation
Hm... looks like PhantomJS doesn't support ArrayBuffer, which makes this pretty difficult to test. Does anyone have thoughts on how to proceed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, I left a comment about how to get it passing...
@@ -79,6 +79,30 @@ test('posting a form', function(assert) { | |||
assert.equal(data.name, 'World'); | |||
}); | |||
}); | |||
test('posting an array buffer', function(assert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrap this test in an if (typeof ArrayBuffer !== ‘undefined’) {
, which will get the tests passing on phantom (by not running this one) and on chrome...
32d5c0f
to
7fd45a0
Compare
I think CI was just fixed in #95, can you rebase (so we can confirm AppVeyor is passing properly)? |
7fd45a0
to
59a6022
Compare
59a6022
to
6f9837d
Compare
@rwjblue mind taking another look? |
Currently, this library doesn't let you send
ArrayBuffer
s using fetch, even though the underlying polyfill supports it.