Skip to content

Commit

Permalink
Remove an old test
Browse files Browse the repository at this point in the history
The test assumes that if a file is successfully fetched from a /public/
directory then the download URL can also be used as a public URL. That
is however not true since DropBox requires all public URLs to be
explicitly created.
  • Loading branch information
Ragnis committed Feb 14, 2019
1 parent a008622 commit 26be9bf
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions test/unit/dropbox-suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -946,49 +946,6 @@ define(['require', './src/util', './src/dropbox', './src/wireclient',
}
},

{
desc: "share gets called after getting a public path without touching the fullfilments",
run: function (env, test) {
oldShare = env.connectedClient.share;
env.connectedClient.share = function(path) {
oldShare.bind(env.connectedClient)(path)
.then(function (r) {
test.assert(env.connectedClient._itemRefs['/public/foo'],'http://dropbox.shareing/url');
test.done();
})
.catch(function (err) {
test.fail(err);
});
env.connectedClient.share = oldShare;
};

addMockRequestCallback(function (req) {
mockRequestSuccess({
status: 200,
responseHeaders: {
'Content-Type': 'text/plain; charset=UTF-8',
'Dropbox-API-Result': JSON.stringify({rev: 'rev'})
},
arrayBuffer: new ArrayBufferMock('response-body')
});
});
addMockRequestCallback(function (req) {
mockRequestSuccess({
status: 200,
responseText: JSON.stringify( {
url: 'http://dropbox.shareing/url'
})
});
});
env.connectedClient.get('/public/foo').then(function (r){
test.assertAnd(r.statusCode, 200, 'status = '+r.statusCode);
test.assertAnd(r.revision, 'rev',r.revision)
test.assertAnd(r.body, 'response-body', 'body = '+ r.body);
})
}
},


{
desc: "Dropbox adapter hooks itself into sync cycle when activated",
run: function (env, test){
Expand Down

0 comments on commit 26be9bf

Please sign in to comment.