@atombender/hydrant-api
Advanced tools
Comparing version 0.0.34 to 0.0.35
@@ -141,3 +141,3 @@ 'use strict'; | ||
value: function equals(other) { | ||
return other instanceof AggregationInstance && other.dimension.equals(this.dimension) && (other.categoryValue.equals ? other.categoryValue.equals(this.categoryValue) : (0, _underscore.isEqual)(other.categoryValue, this.categoryValue)) && other.functionName === this.functionName; | ||
return other instanceof AggregationInstance && other.dimension && other.dimension.equals(this.dimension) && (other.categoryValue.equals ? other.categoryValue.equals(this.categoryValue) : (0, _underscore.isEqual)(other.categoryValue, this.categoryValue)) && other.functionName === this.functionName; | ||
} | ||
@@ -144,0 +144,0 @@ }, { |
{ | ||
"name": "@atombender/hydrant-api", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -12,3 +12,7 @@ import expect from 'expect.js'; | ||
const testTimeZones = [null, 'America/Los_Angeles', 'America/New_York']; | ||
const testTimeZones = [ | ||
null, | ||
'America/Los_Angeles', | ||
'America/New_York' | ||
]; | ||
@@ -29,4 +33,4 @@ describe('TIMEFRAMES', () => { | ||
let range = getTimeframeById('this_year').getRange(tzName); | ||
expect(range.start.format()).to.eql(now.startOf('year').format()); | ||
expect(range.end.format()).to.eql(now.format()); | ||
expect(range.start.format()).to.eql(moment(now).startOf('year').format()); | ||
expect(range.end.format('YYYY-MM-DD')).to.eql(now.format('YYYY-MM-DD')); | ||
}); | ||
@@ -33,0 +37,0 @@ }); |
123285
3237