2 Commits

Author SHA1 Message Date
2b5056085c 2.0.4 2017-08-24 16:56:08 +02:00
8f31088ab5 update test 2017-08-24 16:56:04 +02:00
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "smartanalytics", "name": "smartanalytics",
"version": "2.0.3", "version": "2.0.4",
"description": "Google Analytics everywhere", "description": "Google Analytics everywhere",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",

View File

@ -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'