From e518b94fba6426635532da49c1ff6d8b96bcfdfc Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 23 Dec 2022 21:16:17 +0100 Subject: [PATCH] Fixed tests --- test/visits/services/VisitsParser.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/visits/services/VisitsParser.test.ts b/test/visits/services/VisitsParser.test.ts index ed3b7bbd..6bc8819f 100644 --- a/test/visits/services/VisitsParser.test.ts +++ b/test/visits/services/VisitsParser.test.ts @@ -7,6 +7,7 @@ describe('VisitsParser', () => { Mock.of({ userAgent: 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0', referer: 'https://google.com', + potentialBot: false, visitLocation: { countryName: 'Spain', cityName: 'Zaragoza', @@ -17,6 +18,7 @@ describe('VisitsParser', () => { Mock.of({ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0', referer: 'https://google.com', + potentialBot: false, visitLocation: { countryName: 'United States', cityName: 'New York', @@ -26,6 +28,7 @@ describe('VisitsParser', () => { }), Mock.of({ userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36', + potentialBot: false, visitLocation: { countryName: 'Spain', cityName: '', @@ -34,6 +37,7 @@ describe('VisitsParser', () => { Mock.of({ userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36', referer: 'https://m.facebook.com', + potentialBot: false, visitLocation: { countryName: 'Spain', cityName: 'Zaragoza', @@ -52,6 +56,7 @@ describe('VisitsParser', () => { visitedUrl: 'foo', userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0', referer: 'https://google.com', + potentialBot: false, visitLocation: { countryName: 'United States', cityName: 'New York',