2
0
Adam Shaw 7 жил өмнө
parent
commit
ce99f30292

+ 4 - 2
tasks/lint.js

@@ -37,7 +37,8 @@ gulp.task('lint:js:built', [ 'webpack' ], function() {
       eslint({ // only checks that globals are properly accessed
         parserOptions: { 'ecmaVersion': 3 }, // for IE9
         envs: [ 'browser', 'commonjs', 'amd' ],
-        rules: { 'no-undef': 2 }
+        rules: { 'no-undef': 2 },
+        globals: [ 'ActiveXObject' ] // for reqwest
       })
     )
     .pipe(eslint.format())
@@ -82,7 +83,8 @@ gulp.task('lint:js:tests', function() {
           'spyOnMethod',
           'spyOnCalendarCallback',
           'spyCall',
-          'oneCall'
+          'oneCall',
+          'XHRMock'
         ]
       })
     )

+ 2 - 2
tests/automated/legacy/events-gcal.js

@@ -15,8 +15,8 @@ describe('Google Calendar plugin', function() {
 
   // Google sometimes stops returning old events. Will need to update this sometimes.
   var DEFAULT_MONTH = '2018-01'
-  var REQUEST_START = '2017-12-30T00:00:00Z' // one day before, by design
-  var REQUEST_END = '2018-02-12T00:00:00Z' // one day before, by design
+  // var REQUEST_START = '2017-12-30T00:00:00Z' // one day before, by design
+  // var REQUEST_END = '2018-02-12T00:00:00Z' // one day before, by design
   var NUM_EVENTS = 3
 
   var options

+ 1 - 1
tests/automated/legacy/events-json-feed.js

@@ -130,7 +130,7 @@ describe('events as a json feed', function() {
         url: 'my-feed.php',
         data: {
           customParam: 'yes'
-        },
+        }
       } ]
     })
   })