diff --git a/test/com/wsscode/pathom3/connect/runner_test.cljc b/test/com/wsscode/pathom3/connect/runner_test.cljc index 80215f5b..4e6d1dcb 100644 --- a/test/com/wsscode/pathom3/connect/runner_test.cljc +++ b/test/com/wsscode/pathom3/connect/runner_test.cljc @@ -2927,16 +2927,17 @@ :y 20})))) (deftest run-graph!-placeholders-test - (is (check-serial (pci/register (pbir/constantly-resolver :foo "bar")) - {} - [{:>/path [:foo]}] - {:>/path {:foo "bar"}})) + (check-all-runners + (pci/register (pbir/constantly-resolver :foo "bar")) + {} + [{:>/path [:foo]}] + {:>/path {:foo "bar"}}) - (is (graph-response? (pci/register (pbir/constantly-resolver :foo "bar")) - {:foo "baz"} - [{:>/path [:foo]}] - {:foo "baz" - :>/path {:foo "baz"}})) + (check-all-runners (pci/register (pbir/constantly-resolver :foo "bar")) + {:foo "baz"} + [{:>/path [:foo]}] + {:foo "baz" + :>/path {:foo "baz"}}) (testing "keep split when placeholder uses different parameters" (check-all-runners @@ -2962,20 +2963,21 @@ {:>/a {:x "foo - 1"}, :>/b {:x "foo - 2"}})) (testing "with batch" - (is (graph-response? (pci/register - [(pco/resolver 'batch - {::pco/batch? true - ::pco/input [:x] - ::pco/output [:y]} - (fn [_ xs] - (mapv #(array-map :y (inc (:x %))) xs)))]) - {:x 10} - '[:y - {:>/go [:y]}] - {:x 10 - :y 11 - :>/go {:x 10 - :y 11}}))) + (check-all-runners + (pci/register + [(pco/resolver 'batch + {::pco/batch? true + ::pco/input [:x] + ::pco/output [:y]} + (fn [_ xs] + (mapv #(array-map :y (inc (:x %))) xs)))]) + {:x 10} + '[:y + {:>/go [:y]}] + {:x 10 + :y 11 + :>/go {:x 10 + :y 11}})) (testing "placeholder-data-params" (check-all-runners