diff options
Diffstat (limited to 'tests/core/fs_spec.lua')
| -rw-r--r-- | tests/core/fs_spec.lua | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/core/fs_spec.lua b/tests/core/fs_spec.lua deleted file mode 100644 index 9fa59189..00000000 --- a/tests/core/fs_spec.lua +++ /dev/null @@ -1,24 +0,0 @@ -local fs = require "mason.core.fs" -local mason = require "mason" - -describe("fs", function() - before_each(function() - mason.setup { - install_root_dir = "/foo", - } - end) - - it( - "refuses to rmrf paths outside of boundary", - async_test(function() - local e = assert.has.errors(function() - fs.async.rmrf "/thisisa/path" - end) - - assert.equal( - [[Refusing to rmrf "/thisisa/path" which is outside of the allowed boundary "/foo". Please report this error at https://github.com/williamboman/mason.nvim/issues/new]], - e - ) - end) - ) -end) |
