Skip to content

Commit

Permalink
test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bplatz committed Nov 5, 2022
1 parent 52582c5 commit 9aab21e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/fluree/db/query/reverse_query_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,19 @@
(deftest ^:integration context-reverse-test
(testing "Test that the @reverse context values pulls select values back correctly."
(let [conn (test-utils/create-conn)
ledger @(fluree/create conn "query/revers" {:context {:ex "http://example.org/ns/"}})
ledger @(fluree/create conn "query/reverse" {:context {:ex "http://example.org/ns/"}})
db @(fluree/stage
ledger
[{:id :ex/brian,
:type :ex/User,
:schema/name "Brian"
:ex/last "Smith"
:schema/email "[email protected]"
:ex/friend [:ex/alice]}
{:id :ex/alice,
:type :ex/User,
:schema/name "Alice"
:ex/last "Smith"
:schema/email "[email protected]"}
:schema/name "Alice"}
{:id :ex/cam,
:type :ex/User,
:schema/name "Cam"
:ex/last "Jones"
:schema/email "[email protected]"
:ex/friend [:ex/brian :ex/alice]}])]

(is (= @(fluree/query db {:context {:friended {:reverse :ex/friend}}
Expand Down

0 comments on commit 9aab21e

Please sign in to comment.