|
8 | 8 | (use-fixtures :once helpers.malli/with-intrumentation)
|
9 | 9 |
|
10 | 10 | (deftest str-var->vector-var-test
|
11 |
| - (testing "root-level configs should be converted to vectors" |
12 |
| - (is (match? ["value1" "value2"] |
13 |
| - (#'backend.config/str-var->vector-var "value1, value2")))) |
| 11 | + (testing "csv configs should be converted to vectors" |
| 12 | + (is (match? ["value1" "value2"] |
| 13 | + (#'backend.config/str-var->vector-var "value1, value2")))) |
14 | 14 |
|
15 |
| - (testing "trailing and extra whitespaces should be ignored" |
16 |
| - (is (match? ["value3" "value4" "value5"] |
17 |
| - (#'backend.config/str-var->vector-var "value3, value4,value5, ")))) |
| 15 | + (testing "trailing and extra whitespaces should be ignored" |
| 16 | + (is (match? ["value3" "value4" "value5"] |
| 17 | + (#'backend.config/str-var->vector-var "value3, value4,value5, ")))) |
18 | 18 |
|
19 |
| - (testing "trailing commas should be ignored" |
20 |
| - (is (match? ["value6" "value7"] |
21 |
| - (#'backend.config/str-var->vector-var "value6, value7,"))))) |
| 19 | + (testing "trailing commas should be ignored" |
| 20 | + (is (match? ["value6" "value7"] |
| 21 | + (#'backend.config/str-var->vector-var "value6, value7,"))))) |
22 | 22 |
|
23 | 23 | (deftest csv-reader-test
|
24 |
| - (testing "tag literal #csv should turn comma-separated strings into vectors" |
25 |
| - (is (match? {:some-config ["value1" "value2"] |
26 |
| - :malformed-config ["value3" "value4" "value5"] |
27 |
| - :trailing-comma-config ["value6" "value7"]} |
28 |
| - (aero/read-config "test/resources/csv-config.edn"))))) |
| 24 | + (testing "tag literal #csv should turn comma-separated strings into vectors" |
| 25 | + (is (match? {:some-config ["value1" "value2"] |
| 26 | + :malformed-config ["value3" "value4" "value5"] |
| 27 | + :trailing-comma-config ["value6" "value7"]} |
| 28 | + (aero/read-config "test/resources/csv-config.edn"))))) |
0 commit comments