File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 268268
269269 (testing " replaces file pattern with file content - absolute path"
270270 (with-redefs [fs/absolute? (fn [path] (= path " /absolute/file.txt" ))
271+ fs/expand-home identity
271272 slurp (fn [path]
272273 (if (= (str path) " /absolute/file.txt" )
273274 " test file content"
277278 (testing " replaces file pattern with file content - relative path"
278279 (with-redefs [fs/absolute? (fn [_] false )
279280 fs/path (fn [cwd file-path] (str cwd " /" file-path))
281+ fs/expand-home identity
280282 slurp (fn [path]
281283 (if (= path " /tmp/test.txt" )
282284 " relative file content"
303305
304306 (testing " handles multiple file patterns"
305307 (with-redefs [fs/absolute? (fn [_] true )
308+ fs/expand-home identity
306309 slurp (fn [path]
307310 (case (str path)
308311 " /file1.txt" " content1"
314317 (testing " handles mixed env and file patterns"
315318 (with-redefs [config/get-env (fn [env-var]
316319 (when (= env-var " TEST_VAR" ) " env-value" ))
320+ fs/expand-home identity
317321 fs/absolute? (fn [_] true )
318322 slurp (fn [path]
319323 (if (= (str path) " /file.txt" )
407411 (testing " handles mixed env, file, classpath, and netrc patterns"
408412 (with-redefs [config/get-env (fn [env-var]
409413 (when (= env-var " TEST_VAR" ) " env-value" ))
414+ fs/expand-home identity
410415 fs/absolute? (fn [_] true )
411416 slurp (fn [path]
412417 (cond
You can’t perform that action at this time.
0 commit comments