Fix timezone issues in test

This commit is contained in:
Kim Christensen
2018-07-23 10:05:46 +02:00
parent dd81f4381d
commit 8c52e2cd57
@@ -19,8 +19,8 @@ describe('InfluxDataSource', () => {
let query = 'SELECT max(value) FROM measurement WHERE $timeFilter';
let queryOptions: any = {
range: {
from: '2018-01-01 00:00:00',
to: '2018-01-02 00:00:00',
from: '2018-01-01T00:00:00Z',
to: '2018-01-02T00:00:00Z',
},
};
let requestQuery;
@@ -47,7 +47,7 @@ describe('InfluxDataSource', () => {
});
it('should replace $timefilter', () => {
expect(requestQuery).toMatch('time >= 1514761200000ms and time <= 1514847600000ms');
expect(requestQuery).toMatch('time >= 1514764800000ms and time <= 1514851200000ms');
});
});
});