From b3c6a13bad7a569c9b50d74022132063e33d1e17 Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Mon, 8 Aug 2016 16:22:21 -0500 Subject: [PATCH] [api tests] update pipeline tests to grab id from object keys instead of array index --- test/unit/api/ingest/_post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/api/ingest/_post.js b/test/unit/api/ingest/_post.js index 4346664111fc8..732c9499a70fe 100644 --- a/test/unit/api/ingest/_post.js +++ b/test/unit/api/ingest/_post.js @@ -175,7 +175,7 @@ define(function (require) { method: 'GET' }) .then(function (body) { - expect(body.pipelines[0].id).to.be('kibana-logstash-*'); + expect(body).to.have.property('kibana-logstash-*'); }); }); });