Skip to content
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

Fixed binary files #11

Merged
merged 1 commit into from Feb 11, 2016
Merged

Fixed binary files #11

merged 1 commit into from Feb 11, 2016

Conversation

ghost
Copy link

@ghost ghost commented Feb 10, 2016

@yakovkhalinsky
Copy link
Owner

Thanks for the PR @legacy3

Will merge it after the tests have pass and publish it to NPM later today 🎯

@yakovkhalinsky
Copy link
Owner

@legacy3 looks like the expectation of one of the unit tests needs to be updated.

If you can could you please update the test? otherwise I'm happy to do it when I get time later today.

  1) actions/file downloadFileByName with good response should set correct options and resolve with good response (filename to be encoded):
      Error: expected { url: 'https://download/file/unicornBox/unicorns-and_rainbows!%40%23%24%25%5E%26.png',
  headers: { Authorization: 'unicorns and rainbows' },
  encoding: null } to sort of equal { url: 'https://download/file/unicornBox/unicorns-and_rainbows!%40%23%24%25%5E%26.png',
  headers: { Authorization: 'unicorns and rainbows' } }
      + expected - actual
       {
      -  "encoding": [null]
         "headers": {
           "Authorization": "unicorns and rainbows"
         }
         "url": "https://download/file/unicornBox/unicorns-and_rainbows!%40%23%24%25%5E%26.png"

      at Assertion.assert (node_modules/expect.js/index.js:96:13)
      at Assertion.eql (node_modules/expect.js/index.js:230:10)
      at Context.<anonymous> (test/unit/lib/actions/fileTest.js:366:43)
      at test/unit/lib/actions/fileTest.js:361:21
      at _fulfilled (node_modules/q/q.js:834:54)
      at self.promiseDispatch.done (node_modules/q/q.js:863:30)
      at Promise.promise.promiseDispatch (node_modules/q/q.js:796:13)
      at node_modules/q/q.js:556:49
      at runSingle (node_modules/q/q.js:137:13)
      at flush (node_modules/q/q.js:125:13)

@yakovkhalinsky
Copy link
Owner

@legacy3 I'm going to rebase your code onto master and then fix the test 👍

@yakovkhalinsky yakovkhalinsky merged commit 77da932 into yakovkhalinsky:master Feb 11, 2016
@yakovkhalinsky
Copy link
Owner

All good test is fix thanks again for the PR @legacy3 👍

@yakovkhalinsky yakovkhalinsky modified the milestone: 0.9.9 Feb 11, 2016
@ghost
Copy link
Author

ghost commented Feb 11, 2016

yeah no problem, thanks for the lib mate :^)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants