aboutsummaryrefslogtreecommitdiffstats
path: root/tests/core/fs_spec.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-07-08 18:34:38 +0200
committerGitHub <noreply@github.com>2022-07-08 18:34:38 +0200
commit976aa4fbee8a070f362cab6f6ec84e9251a90cf9 (patch)
tree5e8d9c9c59444a25c7801b8f39763c4ba6e1f76d /tests/core/fs_spec.lua
parentfeat: add gotests, gomodifytags, impl (#28) (diff)
downloadmason-976aa4fbee8a070f362cab6f6ec84e9251a90cf9.tar
mason-976aa4fbee8a070f362cab6f6ec84e9251a90cf9.tar.gz
mason-976aa4fbee8a070f362cab6f6ec84e9251a90cf9.tar.bz2
mason-976aa4fbee8a070f362cab6f6ec84e9251a90cf9.tar.lz
mason-976aa4fbee8a070f362cab6f6ec84e9251a90cf9.tar.xz
mason-976aa4fbee8a070f362cab6f6ec84e9251a90cf9.tar.zst
mason-976aa4fbee8a070f362cab6f6ec84e9251a90cf9.zip
refactor: add mason-schemas and mason-core modules (#29)
* refactor: add mason-schemas and move generated filetype map to mason-lspconfig * refactor: add mason-core module
Diffstat (limited to 'tests/core/fs_spec.lua')
-rw-r--r--tests/core/fs_spec.lua24
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)