diff options
| author | William Boman <william@redwill.se> | 2022-12-08 02:13:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-08 02:13:17 +0100 |
| commit | f0a71b423991ea5589c389381ab8e022c5ef5f29 (patch) | |
| tree | 6c8a4b1e37bc756c03e3468a964cfaa99ae1884e /tests/mason-core/platform_spec.lua | |
| parent | test(functional): add some tests (#742) (diff) | |
| download | mason-f0a71b423991ea5589c389381ab8e022c5ef5f29.tar mason-f0a71b423991ea5589c389381ab8e022c5ef5f29.tar.gz mason-f0a71b423991ea5589c389381ab8e022c5ef5f29.tar.bz2 mason-f0a71b423991ea5589c389381ab8e022c5ef5f29.tar.lz mason-f0a71b423991ea5589c389381ab8e022c5ef5f29.tar.xz mason-f0a71b423991ea5589c389381ab8e022c5ef5f29.tar.zst mason-f0a71b423991ea5589c389381ab8e022c5ef5f29.zip | |
feat(platform): accept darwin (#743)
Mac systems are generally referred to as the Darwin OS. For all intents
and purposes, "mac" and "darwin" can be used interchangeably (although
darwin will be preferred going forward).
Diffstat (limited to 'tests/mason-core/platform_spec.lua')
| -rw-r--r-- | tests/mason-core/platform_spec.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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) |
