Skip to content

Commit 4935036

Browse files
committed
Add test cases for statement batches
1 parent d4747a6 commit 4935036

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

test/xapi_schema/spec_test.cljc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,3 +626,16 @@
626626
"verb" {"id" "http://adlnet.gov/expapi/verbs/voided"
627627
"display" {"en-US" "voided"}}
628628
"object" {"id" "http://example.com/activities/1"}})))
629+
630+
(deftest statements-test
631+
(testing "generic statememt batch"
632+
(should-satisfy+ ::xs/statements
633+
[simple-statement]
634+
[simple-statement long-statement]
635+
[]))
636+
(testing "LRS retrieval statement batch"
637+
(should-satisfy+ ::xs/lrs-statements
638+
[simple-statement]
639+
[simple-statement long-statement]
640+
:bad
641+
[])))

0 commit comments

Comments
 (0)