v1.0.2 #1363
Annotations
4 errors
postHog › should call capture on the postHog client:
packages/cli/src/util/postHog/__test__/index.test.ts#L49
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
"distinctId": "abc",
"event": "ate pizza",
- "properties": Object {},
+ "properties": Object {
+ "mailing_version": "1.0.1",
+ },
},
Number of calls: 1
at Object.<anonymous> (packages/cli/src/util/postHog/__test__/index.test.ts:49:39)
|
postHog › should call capture on the postHog client - with config.anonymousId if options.distinctId is blank:
packages/cli/src/util/postHog/__test__/index.test.ts#L71
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
"distinctId": "config-xyz",
"event": "ate pizza",
- "properties": Object {},
+ "properties": Object {
+ "mailing_version": "1.0.1",
+ },
},
Number of calls: 1
at Object.<anonymous> (packages/cli/src/util/postHog/__test__/index.test.ts:71:39)
|
postHog › should call capture on the postHog client - with generatedAnonymousId if options.distinctId and config.anonymousId are blank:
packages/cli/src/util/postHog/__test__/index.test.ts#L91
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
"distinctId": "generated-xyz",
"event": "ate pizza",
- "properties": Object {},
+ "properties": Object {
+ "mailing_version": "1.0.1",
+ },
},
Number of calls: 1
at Object.<anonymous> (packages/cli/src/util/postHog/__test__/index.test.ts:91:39)
|
jest (18)
Process completed with exit code 1.
|