From 4fe541162a5e8d65a892b180ecb5351d495d6655 Mon Sep 17 00:00:00 2001 From: shikharsharma-zeotap Date: Thu, 27 Aug 2020 12:10:26 +0530 Subject: [PATCH] add tests to eids_spec --- test/spec/modules/eids_spec.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/spec/modules/eids_spec.js b/test/spec/modules/eids_spec.js index 8ad44f0b1ad..a0bc0a84ee3 100644 --- a/test/spec/modules/eids_spec.js +++ b/test/spec/modules/eids_spec.js @@ -192,6 +192,20 @@ describe('eids array generation for known sub-modules', function() { }] }); }); + it('zeotapIdPlus', function() { + const userId = { + IDP: 'some-random-id-value' + }; + const newEids = createEidsArray(userId); + expect(newEids.length).to.equal(1); + expect(newEids[0]).to.deep.equal({ + source: 'zeotap.com', + uids: [{ + id: 'some-random-id-value', + atype: 1 + }] + }); + }); }); describe('Negative case', function() {