Skip to content

Commit 26be9bf

Browse files
committed
Remove an old test
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.
1 parent a008622 commit 26be9bf

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

test/unit/dropbox-suite.js

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -946,49 +946,6 @@ define(['require', './src/util', './src/dropbox', './src/wireclient',
946946
}
947947
},
948948

949-
{
950-
desc: "share gets called after getting a public path without touching the fullfilments",
951-
run: function (env, test) {
952-
oldShare = env.connectedClient.share;
953-
env.connectedClient.share = function(path) {
954-
oldShare.bind(env.connectedClient)(path)
955-
.then(function (r) {
956-
test.assert(env.connectedClient._itemRefs['/public/foo'],'http://dropbox.shareing/url');
957-
test.done();
958-
})
959-
.catch(function (err) {
960-
test.fail(err);
961-
});
962-
env.connectedClient.share = oldShare;
963-
};
964-
965-
addMockRequestCallback(function (req) {
966-
mockRequestSuccess({
967-
status: 200,
968-
responseHeaders: {
969-
'Content-Type': 'text/plain; charset=UTF-8',
970-
'Dropbox-API-Result': JSON.stringify({rev: 'rev'})
971-
},
972-
arrayBuffer: new ArrayBufferMock('response-body')
973-
});
974-
});
975-
addMockRequestCallback(function (req) {
976-
mockRequestSuccess({
977-
status: 200,
978-
responseText: JSON.stringify( {
979-
url: 'http://dropbox.shareing/url'
980-
})
981-
});
982-
});
983-
env.connectedClient.get('/public/foo').then(function (r){
984-
test.assertAnd(r.statusCode, 200, 'status = '+r.statusCode);
985-
test.assertAnd(r.revision, 'rev',r.revision)
986-
test.assertAnd(r.body, 'response-body', 'body = '+ r.body);
987-
})
988-
}
989-
},
990-
991-
992949
{
993950
desc: "Dropbox adapter hooks itself into sync cycle when activated",
994951
run: function (env, test){

0 commit comments

Comments
 (0)