From 50719142bc5f0d02ee272ffc13f011ed528af798 Mon Sep 17 00:00:00 2001 From: blankie Date: Sun, 9 Oct 2022 14:22:23 +0700 Subject: [PATCH] fix syntax --- src/page-file.rkt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/page-file.rkt b/src/page-file.rkt index d20365f..c33b7b9 100644 --- a/src/page-file.rkt +++ b/src/page-file.rkt @@ -43,10 +43,10 @@ [else `""])) (module+ test (require rackunit) - (parameterize ([config-parameter 'strict_proxy "true"]) + (parameterize ([(config-parameter 'strict_proxy) "true"]) (check-equal? (get-media-html "https://static.wikia.nocookie.net/a" "image/jpeg") (img (@ (src "/proxy?dest=https%3A%2F%2Fstatic.wikia.nocookie.net%2Fa")))) (check-equal? (get-media-html "https://static.wikia.nocookie.net/b" "audio/mp3") (audio (@ (src "/proxy?dest=https%3A%2F%2Fstatic.wikia.nocookie.net%2Fb"))))) - (parameterize ([config-parameter 'strict_proxy "no"]) + (parameterize ([(config-parameter 'strict_proxy) "no"]) (check-equal? (get-media-html "https://static.wikia.nocookie.net/c" "application/ogg") (audio (@ (src "/proxy?dest=https%3A%2F%2Fstatic.wikia.nocookie.net%2Fc")))) (check-equal? (get-media-html "https://static.wikia.nocookie.net/d" "video/mp4") (video (@ (src "/proxy?dest=https%3A%2F%2Fstatic.wikia.nocookie.net%2Fd"))))) (check-equal? (get-media-html "https://example.com" "who knows") "")