From 9ab3bb048eaa87ef96743cfcd7a428c7159bba1d Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Thu, 19 May 2016 14:12:01 -0700 Subject: [PATCH] update tests and fixture --- test/fixtures/elasticsearch.js | 2 +- test/src/job.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fixtures/elasticsearch.js b/test/fixtures/elasticsearch.js index 3862254..f1addec 100644 --- a/test/fixtures/elasticsearch.js +++ b/test/fixtures/elasticsearch.js @@ -32,7 +32,7 @@ Client.prototype.get = function (params = {}, source = {}) { const _source = Object.assign({ jobtype: 'jobtype', - created_by: null, + created_by: false, payload: { id: 'sample-job-1', now: 'Mon Apr 25 2016 14:13:04 GMT-0700 (MST)' diff --git a/test/src/job.js b/test/src/job.js index 64f85dd..599bc92 100644 --- a/test/src/job.js +++ b/test/src/job.js @@ -14,7 +14,7 @@ const Job = module; const maxPriority = 20; const minPriority = -20; const defaultPriority = 10; -const defaultCreatedBy = null; +const defaultCreatedBy = false; describe('Job Class', function () { let client;