From 1e23b7d74d9f7302108a8ae54e8b852ee14e0f17 Mon Sep 17 00:00:00 2001 From: Arturs Sosins Date: Fri, 9 Aug 2019 20:09:05 +0300 Subject: [PATCH] Fix tests --- test/test-example.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/test-example.js b/test/test-example.js index 13e21f9..c52b863 100644 --- a/test/test-example.js +++ b/test/test-example.js @@ -42,7 +42,7 @@ function testMetrics(data){ function testBeginSession(data){ data = JSON.parse(data); assert.equal(data.begin_session, 1); - assert.equal(data.app_key, "{YOUR-APP-KEY}"); + assert.equal(data.app_key, "YOUR_APP_KEY"); assert.ok(data.device_id); assert.ok(data.timestamp); assert.ok(typeof data.hour !== "undefined"); @@ -53,7 +53,7 @@ function testBeginSession(data){ function testSessionDuration(data){ data = JSON.parse(data); assert.equal(assert(data.session_duration >= 60 && data.session_duration <= 61)); - assert.equal(data.app_key, "{YOUR-APP-KEY}"); + assert.equal(data.app_key, "YOUR_APP_KEY"); assert.ok(data.device_id); assert.ok(data.timestamp); assert.ok(typeof data.hour !== "undefined"); @@ -64,7 +64,7 @@ function testEndSession(data){ data = JSON.parse(data); assert.equal(data.end_session, 1); assert.equal(assert(data.session_duration >= 9 && data.session_duration <= 11)); - assert.equal(data.app_key, "{YOUR-APP-KEY}"); + assert.equal(data.app_key, "YOUR_APP_KEY"); assert.ok(data.device_id); assert.ok(data.timestamp); assert.ok(typeof data.hour !== "undefined"); @@ -82,7 +82,7 @@ function testEvent(data){ assert.ok(typeof data.events[i].hour !== "undefined"); assert.ok(typeof data.events[i].dow !== "undefined"); } - assert.equal(data.app_key, "{YOUR-APP-KEY}"); + assert.equal(data.app_key, "YOUR_APP_KEY"); assert.ok(data.device_id); assert.ok(data.timestamp); assert.ok(typeof data.hour !== "undefined"); @@ -102,7 +102,7 @@ function testUserDetails(data){ assert.ok(data.user_details.gender); assert.ok(data.user_details.byear); assert.ok(data.user_details.custom); - assert.equal(data.app_key, "{YOUR-APP-KEY}"); + assert.equal(data.app_key, "YOUR_APP_KEY"); assert.ok(data.device_id); assert.ok(data.timestamp); assert.ok(typeof data.hour !== "undefined"); @@ -120,7 +120,7 @@ function testCrash(data){ assert.ok(data.crash._run); assert.ok(data.crash._not_os_specific); assert.ok(data.crash._nonfatal); - assert.equal(data.app_key, "{YOUR-APP-KEY}"); + assert.equal(data.app_key, "YOUR_APP_KEY"); assert.ok(data.device_id); assert.ok(data.timestamp); assert.ok(typeof data.hour !== "undefined");