Fix path to geoip db after test paths were changed
This commit is contained in:
@@ -97,7 +97,7 @@ test('verify user list is populated', async (done) => {
|
|||||||
expect(response.body.length).toBeGreaterThan(0);
|
expect(response.body.length).toBeGreaterThan(0);
|
||||||
|
|
||||||
// Optionally, if GeoIP is configured, check the location property.
|
// Optionally, if GeoIP is configured, check the location property.
|
||||||
if (fs.existsSync('../../data/GeoLite2-City.mmdb')) {
|
if (fs.existsSync('../../../data/GeoLite2-City.mmdb')) {
|
||||||
expect(response.body[0].geo.regionName).toBe('Localhost');
|
expect(response.body[0].geo.regionName).toBe('Localhost');
|
||||||
} else {
|
} else {
|
||||||
console.warn('GeoIP Data is not supplied. Skipping test. See https://owncast.online/docs/viewers/');
|
console.warn('GeoIP Data is not supplied. Skipping test. See https://owncast.online/docs/viewers/');
|
||||||
|
|||||||
Reference in New Issue
Block a user