Skip to content

Commit f7c2a46

Browse files
committed
removed ugly text to its own def
1 parent a3b9b77 commit f7c2a46

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/test/lrsql/ops/query/reaction_test.clj

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@
158158
bk ds {:trigger-id trigger-id})))
159159
(finally (component/stop sys'))))))
160160

161+
(def invalid-statement-spec-error-str
162+
"Reaction Invalid Statement Error - Spec Error: #:statement{:foo \"mailto:bob@example.com\"} - failed: (contains? % :statement/actor) spec: :xapi-schema.spec/statement
163+
#:statement{:foo \"mailto:bob@example.com\"} - failed: (contains? % :statement/verb) spec: :xapi-schema.spec/statement
164+
#:statement{:foo \"mailto:bob@example.com\"} - failed: (contains? % :statement/object) spec: :xapi-schema.spec/statement
165+
")
166+
161167
(deftest query-statement-reactions-invalid-statement-error-test
162168
;; Turn off instrumentation for this one
163169
;; This will keep the instrumentation error from clobbering
@@ -192,12 +198,8 @@
192198
[{:reaction-id reaction-id
193199
:trigger-id trigger-id
194200
:error
195-
{:type "ReactionInvalidStatementError",
196-
:message
197-
"Reaction Invalid Statement Error - Spec Error: #:statement{:foo \"mailto:bob@example.com\"} - failed: (contains? % :statement/actor) spec: :xapi-schema.spec/statement
198-
#:statement{:foo \"mailto:bob@example.com\"} - failed: (contains? % :statement/verb) spec: :xapi-schema.spec/statement
199-
#:statement{:foo \"mailto:bob@example.com\"} - failed: (contains? % :statement/object) spec: :xapi-schema.spec/statement
200-
"}}]}
201+
{:type "ReactionInvalidStatementError",
202+
:message invalid-statement-spec-error-str}}]}
201203
(qr/query-statement-reactions
202204
bk ds {:trigger-id trigger-id})))
203205
(finally (component/stop sys'))))))

0 commit comments

Comments
 (0)