Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Add t/testing blocks for LaskuPvm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
muep committed Nov 10, 2023
1 parent 4b05e95 commit a4a965d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,12 @@
:allekirjoitusaika
(.format laskutus-service/date-formatter-fi)))
xml-str))
(t/is (= laskupvm-expected? (str/includes? xml-str "<LaskuPvm>")))
(if laskupvm-expected?
(t/testing (str "Test that LaskuPvm is present, as expected on " now)
(t/is (str/includes? xml-str "<LaskuPvm>")))
(t/testing (str "Test that LaskuPvm is absent, as expected on " now)
(t/is (not (str/includes? xml-str "<LaskuPvm>")))))

(t/is (str/includes? xml-str "<KumppaniNro>ETP</KumppaniNro>"))))
laskupvm-cases)))

Expand Down

0 comments on commit a4a965d

Please sign in to comment.