ctx-core 7.2.1 → 7.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/all/file_exists/index.js
CHANGED
|
@@ -17,6 +17,14 @@ test('file_exists_ + file_exists__waitfor|server', async ()=>{
|
|
|
17
17
|
await unlink(tempfile_path)
|
|
18
18
|
}
|
|
19
19
|
})
|
|
20
|
+
test('file_exists__waitfor|bun error', async ()=>{
|
|
21
|
+
let count = 0
|
|
22
|
+
await file_exists__waitfor(()=>{
|
|
23
|
+
++count
|
|
24
|
+
if (count < 5) throw Error('error: ENOENT reading /some/file.js')
|
|
25
|
+
return true
|
|
26
|
+
})
|
|
27
|
+
})
|
|
20
28
|
test('file_exists__waitfor|server|cancel', async ()=>{
|
|
21
29
|
const tempfile_path = await tempfile_path_()
|
|
22
30
|
equal(await file_exists_(tempfile_path), false)
|