mirror of
https://github.com/Dasemu/X-GeoBlock.git
synced 2026-11-26 15:26:09 +00:00
refactor: simplify interface and enable sharing defaults
This commit is contained in:
1 parent
e12164c312
commit
9ba1021acd
11 files changed
+53
-45
No files matched your search
@@ -31,6 +31,8 @@ test("normalizes country aliases", () => {
|
||||
test("uses the production collaborative cache endpoint", () => {
|
||||
assert.equal(config.CLOUD_CACHE_ENDPOINT, "https://x-geoblock-cache.dariosevilla.es");
|
||||
assert.equal(config.DEFAULT_SETTINGS.cloudCacheEndpoint, config.CLOUD_CACHE_ENDPOINT);
|
||||
assert.equal(config.DEFAULT_SETTINGS.contributeCloudCache, true);
|
||||
assert.equal(config.DEFAULT_SETTINGS.showPlaceholder, true);
|
||||
});
|
||||
test("followed-account exemption is configurable", () => {
|
||||
assert.equal(config.shouldBlock("Lebanon", ["Lebanon"], true, true), false);
|
||||
|
||||
Reference in new issue
Block a user