Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
krvital committed Aug 8, 2024
1 parent 85fddcf commit 49d029d
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions test/aidbox_sdk/cli_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,27 @@

(testing "validate-args"
(is (= (sut/validate-args [])
["Please provide input argument"
"Please provide output argument"]))

["Please provide one of the supported commands: generate"
"Please provide one of the supported target languages: dotnet, java, typescript, python"
"Please provide input argument"]))

(is (= (sut/validate-args ["resource/schemas"])
["Please provide output argument"]))

(is (= (sut/validate-args ["resource/schemas" "distee"])
[]))
["Please provide one of the supported commands: generate"
"Please provide one of the supported target languages: dotnet, java, typescript, python"
"Please provide input argument"]))

(is (= (sut/validate-args ["generate"])

["Please provide one of the supported target languages: dotnet, java, typescript, python"
"Please provide input argument"]))

(is (= (sut/validate-args ["generate" "dotnet"])

["Please provide input argument"]))

(is (= (sut/validate-args ["resource/schemas" "distee" "-h"])
(is (= (sut/validate-args ["generate" "dotnet" "http://localhost:8765/api/sdk/fhir-packages"])
[]))

#_(is (= (sut/validate-args ["resource/schemas" "-h"])
Expand Down

0 comments on commit 49d029d

Please sign in to comment.