diff --git a/test/test.js b/test/test.js index 8c9c512..5394dbe 100644 --- a/test/test.js +++ b/test/test.js @@ -59,6 +59,7 @@ t('getDirectoryHandle(create=true) creates an empty directory', async root => { arrayEqual(await getSortedDirectoryEntries(root), ['non-existing-dir/']) }) + t('getDirectoryHandle(create=false) returns existing directories', async root => { const existing_handle = await root.getDirectoryHandle('dir-with-contents', { create: true }) await createEmptyFile('test-file', existing_handle)