aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mason-core/platform_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mason-core/platform_spec.lua')
-rw-r--r--tests/mason-core/platform_spec.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/mason-core/platform_spec.lua b/tests/mason-core/platform_spec.lua
index 48484707..88e2b42a 100644
--- a/tests/mason-core/platform_spec.lua
+++ b/tests/mason-core/platform_spec.lua
@@ -15,6 +15,16 @@ local function stub_etc_os_release(contents)
end
describe("platform", function()
+ local snapshot
+
+ before_each(function()
+ snapshot = assert.snapshot()
+ end)
+
+ after_each(function()
+ snapshot:revert()
+ end)
+
local function platform()
package.loaded["mason-core.platform"] = nil
return require "mason-core.platform"