We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b362fa8 commit 729415cCopy full SHA for 729415c
test/user.js
@@ -107,4 +107,13 @@ describe('users', () => {
107
done();
108
});
109
110
+ it('should permanently delete users by intercom user ID', done => {
111
+ nock('https://api.intercom.io').post('/user_delete_requests', { intercom_user_id: 'foo' }).reply(200, { id: 10 });
112
+ const client = new Client('foo', 'bar').usePromises();
113
+ client.users.requestPermanentDeletion('foo').then(r => {
114
+ assert.equal(200, r.statusCode);
115
+ assert.deepStrictEqual({ id: 10 }, r.body);
116
+ done();
117
+ });
118
119
0 commit comments