Skip to content

Commit

Permalink
Go ecmaVersion 8
Browse files Browse the repository at this point in the history
  • Loading branch information
eexit committed Mar 31, 2021
1 parent 04ef36b commit 7eb9ab9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parserOptions": {
"ecmaVersion": 6,
"ecmaVersion": 8,
"ecmaFeatures": {}
},
"rules": {
Expand Down Expand Up @@ -182,7 +182,6 @@
"no-whitespace-before-property": 2,
"no-with": 2,
"nonblock-statement-body-position": 2,
"object-curly-spacing": 2,
"object-shorthand": [2, "consistent"],
"one-var": 2,
"operator-assignment": 2,
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ class CloudinaryAdapter extends StorageBase {
const opts = options || {};
return new Promise(async (resolve, reject) => {
try {
return resolve(await got(opts.path, { responseType: 'buffer', resolveBodyOnly: true }));
return resolve(await got(opts.path, { responseType: 'buffer',
resolveBodyOnly: true }));
} catch (err) {
return reject(new common.errors.GhostError({
err: err,
Expand Down
3 changes: 1 addition & 2 deletions tests/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"plugins": ["mocha"],
"parserOptions": {
"ecmaVersion": 6,
"ecmaVersion": 8,
"ecmaFeatures": {}
},
"rules": {
Expand Down Expand Up @@ -182,7 +182,6 @@
"no-whitespace-before-property": 2,
"no-with": 2,
"nonblock-statement-body-position": 2,
"object-curly-spacing": 2,
"object-shorthand": 2,
"one-var": 2,
"operator-assignment": 2,
Expand Down
8 changes: 4 additions & 4 deletions tests/adapter/read.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ describe('read', function () {

cloudinaryAdapter = new CloudinaryAdapter(fixtures.sampleConfig);
const scope = nock('https://blog.mornati.net')
.get('/myimage.png')
.reply(200, { "body": "imagecontent" }),
.get('/myimage.png')
.reply(200, { "body": "imagecontent" }),
options = { "path": "https://blog.mornati.net/myimage.png" };

cloudinaryAdapter.read(options).then(function () {
Expand All @@ -39,8 +39,8 @@ describe('read', function () {

it('should return an error on inexistent resource', function (done) {
const scope = nock('https://blog.mornati.net')
.get('/myimage.png')
.replyWithError('some error occurred'),
.get('/myimage.png')
.replyWithError('some error occurred'),
options = { "path": "https://blog.mornati.net/myimage.png" };

cloudinaryAdapter = new CloudinaryAdapter(fixtures.sampleConfig);
Expand Down

0 comments on commit 7eb9ab9

Please sign in to comment.