aboutsummaryrefslogtreecommitdiff
path: root/pkg/config
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2022-01-08 20:16:00 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2022-01-08 20:16:00 +0100
commiteaa361b983dd3cea4a5eb879fb542c550411fc62 (patch)
tree00482c2a63eb758d854e96c8cbea57fc2de09b05 /pkg/config
parent5c5ea3caa6770c89c9c3b8e8be6916e74e29f27e (diff)
downloadfeed2imap-go-eaa361b983dd3cea4a5eb879fb542c550411fc62.tar.gz
feed2imap-go-eaa361b983dd3cea4a5eb879fb542c550411fc62.tar.bz2
feed2imap-go-eaa361b983dd3cea4a5eb879fb542c550411fc62.zip
Add test for fix of 180aa45d40
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/yaml_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/config/yaml_test.go b/pkg/config/yaml_test.go
index 4f9fe76..b02c4c4 100644
--- a/pkg/config/yaml_test.go
+++ b/pkg/config/yaml_test.go
@@ -34,6 +34,7 @@ func TestBuildOptions(tst *testing.T) {
{"Simple copy", nil, Options{MinFreq: 75}, Options{MinFreq: 75}, nil},
{"Unknowns", Map{"foo": 1}, Options{}, Options{}, []string{"foo"}},
{"Override", Map{"include-images": true}, Options{InclImages: false}, Options{InclImages: true}, nil},
+ {"Non-Standard Type", Map{"body": "both"}, Options{}, Options{Body: "both"}, nil},
{"Mixed", Map{"min-frequency": 24}, Options{MinFreq: 6, InclImages: true}, Options{MinFreq: 24, InclImages: true}, nil},
{"All",
Map{"max-frequency": 12, "include-images": true, "ignore-hash": true, "obsolete": 54},