@@ -74,7 +74,7 @@ describe('POST /events', () => {
74
74
const pageExample = { ...baseExample , type : 'page' }
75
75
76
76
it ( 'should record a page event' , ( ) =>
77
- checkEvent ( pageExample , 201 )
77
+ checkEvent ( pageExample , 200 )
78
78
)
79
79
80
80
it ( 'should require a type' , ( ) =>
@@ -128,7 +128,7 @@ describe('POST /events', () => {
128
128
...pageExample . context ,
129
129
page_event_id : baseExample . context . event_id
130
130
}
131
- } , 201 )
131
+ } , 200 )
132
132
)
133
133
134
134
it ( 'should not allow a honeypot token' , ( ) =>
@@ -201,7 +201,7 @@ describe('POST /events', () => {
201
201
} , 400 )
202
202
)
203
203
204
- it ( 'should a valid os option' , ( ) =>
204
+ it ( 'should os a valid os option' , ( ) =>
205
205
checkEvent ( {
206
206
...pageExample ,
207
207
context : {
@@ -295,7 +295,7 @@ describe('POST /events', () => {
295
295
}
296
296
297
297
it ( 'should record an exit event' , ( ) =>
298
- checkEvent ( exitExample , 201 )
298
+ checkEvent ( exitExample , 200 )
299
299
)
300
300
301
301
it ( 'should exit_render_duration is a positive number' , ( ) =>
@@ -330,7 +330,7 @@ describe('POST /events', () => {
330
330
}
331
331
332
332
it ( 'should send a link event' , ( ) =>
333
- checkEvent ( linkExample , 201 )
333
+ checkEvent ( linkExample , 200 )
334
334
)
335
335
336
336
it ( 'link_url is a required uri formatted string' , ( ) =>
@@ -347,15 +347,15 @@ describe('POST /events', () => {
347
347
}
348
348
349
349
it ( 'should record a search event' , ( ) =>
350
- checkEvent ( searchExample , 201 )
350
+ checkEvent ( searchExample , 200 )
351
351
)
352
352
353
353
it ( 'search_query is required string' , ( ) =>
354
354
checkEvent ( { ...searchExample , search_query : undefined } , 400 )
355
355
)
356
356
357
357
it ( 'search_context is optional string' , ( ) =>
358
- checkEvent ( { ...searchExample , search_context : undefined } , 201 )
358
+ checkEvent ( { ...searchExample , search_context : undefined } , 200 )
359
359
)
360
360
} )
361
361
@@ -367,11 +367,11 @@ describe('POST /events', () => {
367
367
}
368
368
369
369
it ( 'should record a navigate event' , ( ) =>
370
- checkEvent ( navigateExample , 201 )
370
+ checkEvent ( navigateExample , 200 )
371
371
)
372
372
373
373
it ( 'navigate_label is optional string' , ( ) =>
374
- checkEvent ( { ...navigateExample , navigate_label : undefined } , 201 )
374
+ checkEvent ( { ...navigateExample , navigate_label : undefined } , 200 )
375
375
)
376
376
} )
377
377
@@ -385,7 +385,7 @@ describe('POST /events', () => {
385
385
}
386
386
387
387
it ( 'should record a survey event' , ( ) =>
388
- checkEvent ( surveyExample , 201 )
388
+ checkEvent ( surveyExample , 200 )
389
389
)
390
390
391
391
it ( 'survey_vote is boolean' , ( ) =>
@@ -411,7 +411,7 @@ describe('POST /events', () => {
411
411
}
412
412
413
413
it ( 'should record an experiment event' , ( ) =>
414
- checkEvent ( experimentExample , 201 )
414
+ checkEvent ( experimentExample , 200 )
415
415
)
416
416
417
417
it ( 'experiment_name is required string' , ( ) =>
@@ -423,7 +423,7 @@ describe('POST /events', () => {
423
423
)
424
424
425
425
it ( 'experiment_success is optional boolean' , ( ) =>
426
- checkEvent ( { ...experimentExample , experiment_success : undefined } , 201 )
426
+ checkEvent ( { ...experimentExample , experiment_success : undefined } , 200 )
427
427
)
428
428
} )
429
429
@@ -436,7 +436,7 @@ describe('POST /events', () => {
436
436
}
437
437
438
438
it ( 'should record an redirect event' , ( ) =>
439
- checkEvent ( redirectExample , 201 )
439
+ checkEvent ( redirectExample , 200 )
440
440
)
441
441
442
442
it ( 'redirect_from is required url' , ( ) =>
@@ -456,7 +456,7 @@ describe('POST /events', () => {
456
456
}
457
457
458
458
it ( 'should record an clipboard event' , ( ) =>
459
- checkEvent ( clipboardExample , 201 )
459
+ checkEvent ( clipboardExample , 200 )
460
460
)
461
461
462
462
it ( 'clipboard_operation is required copy, paste, cut' , ( ) =>
@@ -471,7 +471,7 @@ describe('POST /events', () => {
471
471
}
472
472
473
473
it ( 'should record a print event' , ( ) =>
474
- checkEvent ( printExample , 201 )
474
+ checkEvent ( printExample , 200 )
475
475
)
476
476
} )
477
477
} )
0 commit comments