From 49d029d0feca78cc99976f1dccd5841d9c8dd34c Mon Sep 17 00:00:00 2001 From: Vitaly Kravtsov Date: Thu, 8 Aug 2024 21:36:02 +0600 Subject: [PATCH] chore: update tests --- test/aidbox_sdk/cli_test.clj | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/test/aidbox_sdk/cli_test.clj b/test/aidbox_sdk/cli_test.clj index 65bbbad..8b8737e 100644 --- a/test/aidbox_sdk/cli_test.clj +++ b/test/aidbox_sdk/cli_test.clj @@ -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"])