Commit 5f2f4a08 by bergquist

test(influxdb): remove redundant test

parent 991b6eaf
...@@ -6,48 +6,24 @@ describe("influxdb response parser", () => { ...@@ -6,48 +6,24 @@ describe("influxdb response parser", () => {
this.parser = new ResponseParser(); this.parser = new ResponseParser();
describe("SHOW TAG response", () => { describe("SHOW TAG response", () => {
var query = 'SHOW TAG KEYS FROM "cpu"'; var query = 'SHOW TAG KEYS FROM "cpu"';
describe("response from 0.10.0", () => { var response = {
var response = { "results": [
"results": [ {
{ "series": [
"series": [ {
{ "name": "cpu",
"name": "cpu", "columns": ["tagKey"],
"columns": ["tagKey"], "values": [ ["datacenter"], ["hostname"], ["source"] ]
"values": [ ["datacenter"], ["hostname"], ["source"] ] }
} ]
] }
} ]
] };
};
var result = this.parser.parse(query, response);
var result = this.parser.parse(query, response);
it("expects three results", () => {
it("expects three results", () => { expect(_.size(result)).to.be(3);
expect(_.size(result)).to.be(3);
});
});
describe("response from 0.11.0", () => {
var response = {
"results": [
{
"series": [
{
"name": "cpu",
"columns": ["tagKey"],
"values": [ ["datacenter"], ["hostname"], ["source"] ]
}
]
}
]
};
var result = this.parser.parse(query, response);
it("expects three results", () => {
expect(_.size(result)).to.be(3);
});
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment