Remove month extension in test as no longer needed as we are extending the year
authorSeamus Lee <seamuslee001@gmail.com>
Sat, 31 Oct 2015 22:10:47 +0000 (22:10 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Sat, 31 Oct 2015 22:10:47 +0000 (22:10 +0000)
tests/karma/unit/crmMailingRadioDateSpec.js

index 26553b0c95c04148feefc2cb0ae2d7db898db1d5..71ba908097d3afc7b67a0dade0583d8ada1d059b 100644 (file)
@@ -87,7 +87,7 @@ describe('crmMailingRadioDate', function() {
       expect(element.find('.crm-form-time').timeEntry('getTime').getMinutes()).toBe(3);
 
       var now = new Date();
-      var month = '' + (now.getMonth() + 1);
+      var month = '' + now.getMonth();
       var year = (now.getFullYear() + 1);
       if (month.length < 2) month = '0' + month;
       var day = "01";