Skip to content

Commit

Permalink
add tests to eids_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
shikharsharma-zeotap committed Sep 11, 2020
1 parent 20f152e commit 4fe5411
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/spec/modules/eids_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 4fe5411

Please sign in to comment.