Skip to content

Commit

Permalink
Don't skip validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilmo Raunio committed May 22, 2024
1 parent 4145ab0 commit ec2fe66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/oksa/core_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(:require [camel-snake-kebab.core :as csk]
[#?(:clj clojure.test
:cljs cljs.test) :as t]
[oksa.core :as oksa]
[oksa.core]
[oksa.test-util :refer [unparse-and-validate]]
[oksa.alpha.api :as api])
#?(:clj (:import [graphql.parser Parser])))
Expand Down Expand Up @@ -305,7 +305,7 @@
[:fooField]]))))
(t/testing "sequential selection sets should throw an exception"
(t/is (thrown? #?(:clj Exception :cljs js/Error)
(oksa/gql [[:foo {} [:qux :baz]] [:basho]]))))
(unparse-and-validate [[:foo {} [:qux :baz]] [:basho]]))))
(t/testing "sequentiality"
(t/is (= "{foo{bar}}"
(unparse-and-validate [[:foo {}] [:bar]])) "field w/o selection-set + sequential selection-set parses correctly")
Expand Down

0 comments on commit ec2fe66

Please sign in to comment.