From f32648c21477a3938aa31048bca5c3e076aac1f9 Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Sun, 13 Dec 2020 17:38:33 +0100 Subject: [PATCH] fx templete --- spec/elasticsearch.jest.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/spec/elasticsearch.jest.ts b/spec/elasticsearch.jest.ts index a44ae29..ffb5b3d 100644 --- a/spec/elasticsearch.jest.ts +++ b/spec/elasticsearch.jest.ts @@ -30,7 +30,7 @@ describe('simple query', function(){ { "query_string": { "analyze_wildcard": true, - "query": "beat.hostname:opt-project.ru AND !system.network.name:\"IBM USB Remote NDIS Network Device\"" + "query": "beat.hostname:example.com AND !system.network.name:\"IBM USB Remote NDIS Network Device\"" } } ] @@ -142,8 +142,8 @@ describe('simple query', function(){ "field": "@timestamp", "min_doc_count": 0, "extended_bounds": { - "min": "1545933121101", - "max": "1545954721101" + "min": "0", // used to be 1545933121101 + "max": "1" // used to be 1545954721101 }, "format": "epoch_millis" }, @@ -184,6 +184,9 @@ describe('simple query', function(){ let result = elasticMetric.getQuery(from, to, limit, offset); + console.log(result.schema.data); + console.log(expectedQuery.schema.data); + expect(result).toEqual(expectedQuery); });