We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fbd22f commit 9a6afebCopy full SHA for 9a6afeb
1 file changed
test/storage/file.js
@@ -1073,6 +1073,21 @@ describe('File', function() {
1073
writable.end('data');
1074
});
1075
1076
+ it('should pass through a provided uri', function(done) {
1077
+ var options = {
1078
+ uri: 'https://www.googleapis.com/afakeuri'
1079
+ };
1080
+
1081
+ var writable = file.createWriteStream(options);
1082
1083
+ file.startResumableUpload_ = function(stream, options_) {
1084
+ assert.deepEqual(options_.uri, options.uri);
1085
+ done();
1086
1087
1088
+ writable.write('data');
1089
+ });
1090
1091
describe('validation', function() {
1092
var data = 'test';
1093
0 commit comments