File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
test/integration/api/admin Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ module.exports = {
44
44
"no-cond-assign" : "off" ,
45
45
"no-confusing-arrow" : "off" ,
46
46
"no-console" : "off" ,
47
- "no-dupe-keys" : "off " ,
48
- "no-else-return" : "off " ,
49
- "no-empty" : "off " ,
50
- "no-empty-function" : "off " ,
47
+ "no-dupe-keys" : "error " ,
48
+ "no-else-return" : "error " ,
49
+ "no-empty" : "error " ,
50
+ "no-empty-function" : "error " ,
51
51
"no-lonely-if" : "off" ,
52
52
"no-loop-func" : "off" ,
53
53
"no-mixed-operators" : "off" ,
@@ -57,7 +57,7 @@ module.exports = {
57
57
"no-prototype-builtins" : "off" ,
58
58
"no-restricted-syntax" : "off" ,
59
59
"no-return-assign" : "off" ,
60
- "no-shadow" : "off " ,
60
+ "no-shadow" : "error " ,
61
61
"no-throw-literal" : "off" ,
62
62
"no-unreachable" : "error" ,
63
63
"no-unused-vars" : "off" ,
Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ describe("api", function () {
161
161
} ) . then (
162
162
( { public_id } ) => cloudinary . v2 . api . resources ( { type : "upload" } )
163
163
. then ( result => [ public_id , result ] )
164
- . then ( ( [ public_id , result ] ) => {
165
- let resource = findByAttr ( result . resources , "public_id" , public_id ) ;
164
+ . then ( ( [ resources_public_id , result ] ) => {
165
+ let resource = findByAttr ( result . resources , "public_id" , resources_public_id ) ;
166
166
expect ( resource ) . to . be . an ( Object ) ;
167
167
expect ( resource . type ) . to . eql ( "upload" ) ;
168
168
} ) ) ;
Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ function setup() {
40
40
api_key : cloudApiKey ,
41
41
api_secret : cloudApiSecret ,
42
42
public_id : 'sample'
43
- } ) . then ( ( res ) => {
43
+ } ) . then ( ( result ) => {
44
44
console . log ( 'Successfully created a temporary cloud' ) ;
45
45
console . log ( 'Cloudname: ' , cloudName ) ;
46
- console . log ( 'Sample image uploaded to: ' , res . url ) ;
46
+ console . log ( 'Sample image uploaded to: ' , result . url ) ;
47
47
} ) . catch ( ( ) => {
48
48
throw 'FATAL - Could not create sample asset' ;
49
49
} ) ;
You can’t perform that action at this time.
0 commit comments