Compare commits

...

1 Commits

Author SHA1 Message Date
Rahul Padigela 7a669e681e test no region 2020-09-11 16:06:53 -07:00
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
const assert = require('assert');
const { makeS3Request } = require('../utils/makeRequest');
const itSkipIfAWS = process.env.AWS_ON_AIR ? it.skip : it;
describe('Requests without region specified', () => {
const queryObj = {};
const bucket = 'foo';
itSkipIfAWS('should return a response when region is not specified', cb => {
makeS3Request({ method: 'GET', queryObj, bucket }, (err, res) => {
console.log(err, res);
cb();
});
});
});