@segment/analytics-browser-actions-intercom 1.71.0 → 1.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segment/analytics-browser-actions-intercom",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.72.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@segment/analytics-next": ">=1.55.0"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "25747142a1ee2a9790d2a37b5e1dc956346c4704"
|
|
26
26
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Subscription } from '@segment/browser-destination-runtime/types'
|
|
2
2
|
import { Analytics, Context } from '@segment/analytics-next'
|
|
3
3
|
import intercomDestination, { destination } from '../index'
|
|
4
|
+
import nock from 'nock'
|
|
4
5
|
|
|
5
6
|
const subscriptions: Subscription[] = [
|
|
6
7
|
{
|
|
@@ -26,6 +27,10 @@ const subscriptions: Subscription[] = [
|
|
|
26
27
|
]
|
|
27
28
|
|
|
28
29
|
describe('Intercom (actions)', () => {
|
|
30
|
+
beforeEach(() => {
|
|
31
|
+
nock('https://api-iam.intercom.io').get('/').reply(200)
|
|
32
|
+
})
|
|
33
|
+
|
|
29
34
|
test('loads Intercom with just appID', async () => {
|
|
30
35
|
const [event] = await intercomDestination({
|
|
31
36
|
appId: 'topSecretKey',
|