summaryrefslogtreecommitdiff
path: root/reader/scraper/scraper_test.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <f@miniflux.net> 2020-09-27 16:01:06 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net> 2020-09-27 20:04:48 -0700
commitc394a61a4e1fe395191262ed1ccaf70b90a71484 (patch)
treeca3080c4eeb29f3a01d47676be9521334e0696cd /reader/scraper/scraper_test.go
parent16b7b3bc3e4237abbacdf8695a685ca9a03dc5bb (diff)
downloadv2-c394a61a4e1fe395191262ed1ccaf70b90a71484.tar.gz
v2-c394a61a4e1fe395191262ed1ccaf70b90a71484.tar.zst
v2-c394a61a4e1fe395191262ed1ccaf70b90a71484.zip
Add Prometheus exporter
Diffstat (limited to 'reader/scraper/scraper_test.go')
-rw-r--r--reader/scraper/scraper_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/reader/scraper/scraper_test.go b/reader/scraper/scraper_test.go
index 14e13ee8..5b1414df 100644
--- a/reader/scraper/scraper_test.go
+++ b/reader/scraper/scraper_test.go
@@ -39,7 +39,7 @@ func TestWhitelistedContentTypes(t *testing.T) {
}
for inputValue, expectedResult := range scenarios {
- actualResult := isWhitelistedContentType(inputValue)
+ actualResult := isAllowedContentType(inputValue)
if actualResult != expectedResult {
t.Errorf(`Unexpected result for content type whitelist, got "%v" instead of "%v"`, actualResult, expectedResult)
}
@@ -47,10 +47,10 @@ func TestWhitelistedContentTypes(t *testing.T) {
}
func TestSelectorRules(t *testing.T) {
- var ruleTestCases = map[string]string {
- "img.html": "article > img",
- "iframe.html": "article > iframe",
- "p.html": "article > p",
+ var ruleTestCases = map[string]string{
+ "img.html": "article > img",
+ "iframe.html": "article > iframe",
+ "p.html": "article > p",
}
for filename, rule := range ruleTestCases {