Skip to content

Commit 1e23b7d

Browse files
committed
Fix tests
1 parent 8533734 commit 1e23b7d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/test-example.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function testMetrics(data){
4242
function testBeginSession(data){
4343
data = JSON.parse(data);
4444
assert.equal(data.begin_session, 1);
45-
assert.equal(data.app_key, "{YOUR-APP-KEY}");
45+
assert.equal(data.app_key, "YOUR_APP_KEY");
4646
assert.ok(data.device_id);
4747
assert.ok(data.timestamp);
4848
assert.ok(typeof data.hour !== "undefined");
@@ -53,7 +53,7 @@ function testBeginSession(data){
5353
function testSessionDuration(data){
5454
data = JSON.parse(data);
5555
assert.equal(assert(data.session_duration >= 60 && data.session_duration <= 61));
56-
assert.equal(data.app_key, "{YOUR-APP-KEY}");
56+
assert.equal(data.app_key, "YOUR_APP_KEY");
5757
assert.ok(data.device_id);
5858
assert.ok(data.timestamp);
5959
assert.ok(typeof data.hour !== "undefined");
@@ -64,7 +64,7 @@ function testEndSession(data){
6464
data = JSON.parse(data);
6565
assert.equal(data.end_session, 1);
6666
assert.equal(assert(data.session_duration >= 9 && data.session_duration <= 11));
67-
assert.equal(data.app_key, "{YOUR-APP-KEY}");
67+
assert.equal(data.app_key, "YOUR_APP_KEY");
6868
assert.ok(data.device_id);
6969
assert.ok(data.timestamp);
7070
assert.ok(typeof data.hour !== "undefined");
@@ -82,7 +82,7 @@ function testEvent(data){
8282
assert.ok(typeof data.events[i].hour !== "undefined");
8383
assert.ok(typeof data.events[i].dow !== "undefined");
8484
}
85-
assert.equal(data.app_key, "{YOUR-APP-KEY}");
85+
assert.equal(data.app_key, "YOUR_APP_KEY");
8686
assert.ok(data.device_id);
8787
assert.ok(data.timestamp);
8888
assert.ok(typeof data.hour !== "undefined");
@@ -102,7 +102,7 @@ function testUserDetails(data){
102102
assert.ok(data.user_details.gender);
103103
assert.ok(data.user_details.byear);
104104
assert.ok(data.user_details.custom);
105-
assert.equal(data.app_key, "{YOUR-APP-KEY}");
105+
assert.equal(data.app_key, "YOUR_APP_KEY");
106106
assert.ok(data.device_id);
107107
assert.ok(data.timestamp);
108108
assert.ok(typeof data.hour !== "undefined");
@@ -120,7 +120,7 @@ function testCrash(data){
120120
assert.ok(data.crash._run);
121121
assert.ok(data.crash._not_os_specific);
122122
assert.ok(data.crash._nonfatal);
123-
assert.equal(data.app_key, "{YOUR-APP-KEY}");
123+
assert.equal(data.app_key, "YOUR_APP_KEY");
124124
assert.ok(data.device_id);
125125
assert.ok(data.timestamp);
126126
assert.ok(typeof data.hour !== "undefined");

0 commit comments

Comments
 (0)