From 2597d1412570deaeac7d9b22e65733b3824d38ac Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Thu, 1 Jan 2026 17:22:03 +0100 Subject: [PATCH] refactor: Ignore :missing-protocol-method linter --- test/cljc/reitit/core_test.cljc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/test/cljc/reitit/core_test.cljc b/test/cljc/reitit/core_test.cljc index 17c3e4b2..0be783f0 100644 --- a/test/cljc/reitit/core_test.cljc +++ b/test/cljc/reitit/core_test.cljc @@ -1,10 +1,9 @@ (ns reitit.core-test (:require [clojure.test :refer [are deftest is testing]] - [reitit.core :as r #?@(:cljs [:refer [Router]])] + [reitit.core :as r] [reitit.impl :as impl]) #?(:clj - (:import (clojure.lang ExceptionInfo) - (reitit.core Router)))) + (:import (clojure.lang ExceptionInfo)))) (defn- var-handler [& _] "var-handler") @@ -261,10 +260,12 @@ (is (= #'var-handler result)))))) (testing "custom router" - (let [router (r/router ["/ping"] {:router (fn [_ _] - (reify Router - (r/router-name [_] - ::custom)))})] + (let [router (r/router + ["/ping"] + {:router (fn [_ _] + #_{:clj-kondo/ignore [:missing-protocol-method]} + (reify r/Router + (router-name [_] ::custom)))})] (is (= ::custom (r/router-name router))))) (testing "bide sample"