fix(test): correct parameters for create-if-not-exists function

This commit is contained in:
Mega Yu
2026-03-12 10:00:27 +08:00
parent 390cf3261d
commit bd0f852cd2

View File

@@ -17,7 +17,7 @@
(->
(p/do!
(fs/create-if-not-exists nil dir some-file "NEW")
(fs/create-if-not-exists nil nil some-file "NEW")
(is (fs-node/existsSync some-file)
"something.txt created correctly")
(is (= "NEW"
@@ -36,7 +36,7 @@
(->
(p/do!
(fs/create-if-not-exists nil dir some-file "NEW")
(fs/create-if-not-exists nil nil some-file "NEW")
(is (= "OLD" (str (fs-node/readFileSync some-file)))
"something.txt has not been touched and old content still exists"))