Comparing version 0.2.43 to 0.2.44
@@ -9,3 +9,3 @@ var google = require('googleapis'); | ||
"key": key, | ||
"value": value, | ||
"value": parseFloat(value).toFixed(1), | ||
"timestamp": timestamp, | ||
@@ -12,0 +12,0 @@ "suffix": suffix |
{ | ||
"name": "big-stats", | ||
"version": "0.2.43", | ||
"version": "0.2.44", | ||
"description": "google big query backend for statsd", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -35,3 +35,3 @@ var events = require("events"); | ||
const type = "timer"; | ||
const value = "1"; | ||
const value = "1.0"; | ||
const timestamp = "123"; | ||
@@ -51,1 +51,14 @@ | ||
} | ||
exports.testNewRowFloatValue = function(test) { | ||
const key = "statsd.my.metric.sum"; | ||
const type = "timer"; | ||
const value = "1"; | ||
const timestamp = "123"; | ||
const expected = "1.0"; | ||
const actual = bigStats.newRow(type, key, value, timestamp); | ||
test.equal(actual.value + "", expected, "new row object off"); | ||
test.done(); | ||
} |
16763
243