diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/mason-core/installer/context_spec.lua | 1 | ||||
| -rw-r--r-- | tests/mason-core/installer/linker_spec.lua | 1 | ||||
| -rw-r--r-- | tests/mason-core/platform_spec.lua | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/tests/mason-core/installer/context_spec.lua b/tests/mason-core/installer/context_spec.lua index 516aa7d2..0a5b7410 100644 --- a/tests/mason-core/installer/context_spec.lua +++ b/tests/mason-core/installer/context_spec.lua @@ -36,6 +36,7 @@ exec bash -c 'echo $GREETING' "$@"]] end) it("should write shell exec wrapper on Windows", function() + platform.is.darwin = false platform.is.mac = false platform.is.unix = false platform.is.linux = false diff --git a/tests/mason-core/installer/linker_spec.lua b/tests/mason-core/installer/linker_spec.lua index cc14294b..5d3abd29 100644 --- a/tests/mason-core/installer/linker_spec.lua +++ b/tests/mason-core/installer/linker_spec.lua @@ -64,6 +64,7 @@ describe("installer", function() it( "should write executable wrapper on Windows", async_test(function() + platform.is.darwin = false platform.is.mac = false platform.is.linux = false platform.is.unix = false diff --git a/tests/mason-core/platform_spec.lua b/tests/mason-core/platform_spec.lua index dce29dab..fc1f43ed 100644 --- a/tests/mason-core/platform_spec.lua +++ b/tests/mason-core/platform_spec.lua @@ -74,6 +74,7 @@ describe("platform", function() it("should be able to detect macos", function() stub_mac() assert.is_true(platform().is.mac) + assert.is_true(platform().is.darwin) assert.is_true(platform().is.unix) assert.is_false(platform().is.linux) assert.is_false(platform().is.win) @@ -82,6 +83,7 @@ describe("platform", function() it("should be able to detect linux", function() stub_linux() assert.is_false(platform().is.mac) + assert.is_false(platform().is.darwin) assert.is_true(platform().is.unix) assert.is_true(platform().is.linux) assert.is_false(platform().is.win) @@ -90,6 +92,7 @@ describe("platform", function() it("should be able to detect windows", function() stub_windows() assert.is_false(platform().is.mac) + assert.is_false(platform().is.darwin) assert.is_false(platform().is.unix) assert.is_false(platform().is.linux) assert.is_true(platform().is.win) |
