]> source.dussan.org Git - sonarqube.git/commitdiff
fix tz problem in web tests
authorStas Vilchik <vilchiks@gmail.com>
Fri, 13 Nov 2015 13:32:26 +0000 (14:32 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 13 Nov 2015 13:32:26 +0000 (14:32 +0100)
server/sonar-web/package.json
server/sonar-web/tests/apps/overview/helpers/periods-test.js

index 10b162c4ce7721f34c2e39bb22878bd8b712ff8e..87a6ac744b1047dda2a54e9ae565cd79024549e2 100644 (file)
@@ -13,7 +13,6 @@
     "browserify": "11.2.0",
     "browserify-shim": "3.8.10",
     "chai": "3.3.0",
-    "chai-datetime": "^1.4.0",
     "classnames": "^2.2.0",
     "d3": "3.5.6",
     "del": "2.0.2",
index 6dcd1ff3f961314099aa77d4666b4f90b8745d9e..ee50b3c805dcce7d2360adc620d2ed4be07bfb3b 100644 (file)
@@ -1,6 +1,4 @@
-import chai from 'chai';
 import { expect } from 'chai';
-chai.use(require('chai-datetime'));
 
 import { getPeriodDate, getPeriodLabel } from '../../../../src/main/js/apps/overview/helpers/periods';
 
@@ -26,7 +24,7 @@ describe('Overview Helpers', function () {
     describe('#getPeriodDate', function () {
       it('should return date', function () {
         let result = getPeriodDate([PERIOD], PERIOD.index);
-        expect(result).to.equalDate(new Date(2015, 8, 9));
+        expect(result.getFullYear()).to.equal(2015);
       });
 
       it('should return null', function () {