Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
rmi22186 committed May 1, 2024
1 parent 0e9c191 commit 90e0d9f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ describe('Braze Forwarder', function() {
return {
userIdentities: {
customerid: 'abc',
email: '[email protected]'
},
};
},
Expand Down Expand Up @@ -970,6 +971,16 @@ describe('Braze Forwarder', function() {
delete mParticle.getVersion;
});

it('should set an identity on the user upon kit initialization', function() {
mParticle.forwarder.init({
apiKey: '123456',
userIdentificationType: 'Email',
});

window.braze.userId.should.equal('[email protected]');
window.braze.getUser().emailSet.should.equal('[email protected]');
});

it('should set main braze user identity from userIdentificationType ', function() {
mParticle.forwarder.init({
apiKey: '123456',
Expand Down

0 comments on commit 90e0d9f

Please sign in to comment.