aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mason-core/fs_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mason-core/fs_spec.lua')
-rw-r--r--tests/mason-core/fs_spec.lua21
1 files changed, 9 insertions, 12 deletions
diff --git a/tests/mason-core/fs_spec.lua b/tests/mason-core/fs_spec.lua
index 38f97eeb..bd3696da 100644
--- a/tests/mason-core/fs_spec.lua
+++ b/tests/mason-core/fs_spec.lua
@@ -8,17 +8,14 @@ describe("fs", function()
}
end)
- it(
- "refuses to rmrf paths outside of boundary",
- async_test(function()
- local e = assert.has_error(function()
- fs.async.rmrf "/thisisa/path"
- end)
-
- assert.equals(
- [[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
- )
+ it("refuses to rmrf paths outside of boundary", function()
+ local e = assert.has_error(function()
+ fs.sync.rmrf "/thisisa/path"
end)
- )
+
+ assert.equals(
+ [[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)