mirror of
https://github.com/logseq/logseq.git
synced 2026-05-29 23:19:38 +00:00
fix(test): correct parameters for create-if-not-exists function
This commit is contained in:
@@ -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"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user