Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit 7e24e54

Browse files
author
Han Kim
committed
deprecate increments
1 parent 490cbfa commit 7e24e54

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

lib/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ Intercom.prototype.identify = function(identify) {
113113
traits = convertDates(traits, formatDate);
114114

115115
// handle options
116-
if (opts.increments) traits.increments = opts.increments;
117116
if (opts.userHash) traits.user_hash = opts.userHash;
118117
if (opts.user_hash) traits.user_hash = opts.user_hash;
119118

test/index.test.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -235,18 +235,6 @@ describe('Intercom', function() {
235235
});
236236
});
237237

238-
it('should allow passing increments', function() {
239-
analytics.identify('id', {}, {
240-
Intercom: { increments: { number: 42 } }
241-
});
242-
analytics.called(window.Intercom, 'boot', {
243-
app_id: options.appId,
244-
user_id: 'id',
245-
increments: { number: 42 },
246-
id: 'id'
247-
});
248-
});
249-
250238
it('should send widget settings if the activator isnt the default one.', function() {
251239
intercom.options.activator = '#my-widget';
252240
analytics.identify('id');

0 commit comments

Comments
 (0)