Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Added test for setting a user property.
Browse files Browse the repository at this point in the history
  • Loading branch information
andywaite committed Sep 1, 2015
1 parent 2d52c58 commit 9e0d515
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unit/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,10 @@ describe('A feature test', () => {
expect(global._kmq).to.deep.equal([['record', 'blah', undefined]]);
});

it('should add an item to the queue on the global scope when setting user properties', () => {
KissMetrics.setKey('an example key');
KissMetrics.setUserProperties({'blah': 'blah'});
expect(global._kmq).to.deep.equal([['set', {'blah': 'blah'}]]);
});

});

0 comments on commit 9e0d515

Please sign in to comment.