File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 10781078 (merge {:source-type stype}
10791079 (select-keys src [:list :alias :to :commands :labels :notifications
10801080 :archive-format-string :list-archive :base-url
1081+ :website :contribute-url :post-address
10811082 :maintainers :awaiting-delay :periods ])
10821083 (when global-st {:global-labels global-st})
10831084 (when global-cmd {:global-commands global-cmd})
Original file line number Diff line number Diff line change 206206 (is (= #{} (get-in sm [" source" :restricted-types ])))
207207 (is (true ? (get-in sm [" source" :patch-triggers? ]))))))
208208
209+ (deftest build-source-map-keeps-project-links
210+ (testing " the project-link keys survive the source-map whitelist --
211+ they feed the JSON envelope and the exported pages"
212+ (let [sm (common/build-source-map
213+ {:sources [{:name " s" :list " l.example.org"
214+ :website " https://p.example.org"
215+ :contribute-url " https://p.example.org/contribute"
216+ :post-address " bugs@example.org" }]})]
217+ (is (= " https://p.example.org" (get-in sm [" s" :website ])))
218+ (is (= " https://p.example.org/contribute" (get-in sm [" s" :contribute-url ])))
219+ (is (= " bugs@example.org" (get-in sm [" s" :post-address ]))))))
220+
209221; ; ---------------------------------------------------------------------------
210222; ; slugify
211223; ; ---------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments