Skip to content

Commit

Permalink
Add test cases for statement batches
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinqian00 committed Aug 27, 2024
1 parent d4747a6 commit 4935036
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/xapi_schema/spec_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -626,3 +626,16 @@
"verb" {"id" "http://adlnet.gov/expapi/verbs/voided"
"display" {"en-US" "voided"}}
"object" {"id" "http://example.com/activities/1"}})))

(deftest statements-test
(testing "generic statememt batch"
(should-satisfy+ ::xs/statements
[simple-statement]
[simple-statement long-statement]
[]))
(testing "LRS retrieval statement batch"
(should-satisfy+ ::xs/lrs-statements
[simple-statement]
[simple-statement long-statement]
:bad
[])))

0 comments on commit 4935036

Please sign in to comment.