update test
This commit is contained in:
parent
6e99af15f9
commit
8f31088ab5
@ -6,16 +6,16 @@ let testAnalytics: smartanalytics.Analytics
|
|||||||
|
|
||||||
tap.test('should create a valid AnalyticsAccount', async () => {
|
tap.test('should create a valid AnalyticsAccount', async () => {
|
||||||
testAnalytics = new smartanalytics.Analytics({
|
testAnalytics = new smartanalytics.Analytics({
|
||||||
projectIdArg: 'pushrocks',
|
projectIdArg: 'sandbox',
|
||||||
appNameArg: 'smartanalytics',
|
appNameArg: 'smartanalytics',
|
||||||
apiEndPointArg: 'https://pubapi-1.lossless.one/analytics'
|
apiEndPointArg: 'https://pubapi-1.lossless.one/analytics'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
tap.test('should send a request to Google Analytics', async () => {
|
tap.test('should send a request to Lossless API endpoint', async () => {
|
||||||
let doit = async () => {
|
let doit = async () => {
|
||||||
await testAnalytics.recordEvent('sandbox', {
|
await testAnalytics.recordEvent('sandbox', {
|
||||||
someValue: 'someData'
|
trackingPurpose: 'test'
|
||||||
})
|
})
|
||||||
await testAnalytics.recordEvent('sandbox', {
|
await testAnalytics.recordEvent('sandbox', {
|
||||||
someValue: 'someData'
|
someValue: 'someData'
|
||||||
|
Loading…
Reference in New Issue
Block a user