diff options
| author | William Boman <william@redwill.se> | 2023-10-13 21:14:29 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2025-02-19 09:23:19 +0100 |
| commit | ae208dc380808ff1aef39929a0e897e881571d43 (patch) | |
| tree | b9044cec7223062db69998189c76f8163ac9d58b /tests/mason-core/installer/handle_spec.lua | |
| parent | fix(location): use correct registry path (diff) | |
| download | mason-ae208dc380808ff1aef39929a0e897e881571d43.tar mason-ae208dc380808ff1aef39929a0e897e881571d43.tar.gz mason-ae208dc380808ff1aef39929a0e897e881571d43.tar.bz2 mason-ae208dc380808ff1aef39929a0e897e881571d43.tar.lz mason-ae208dc380808ff1aef39929a0e897e881571d43.tar.xz mason-ae208dc380808ff1aef39929a0e897e881571d43.tar.zst mason-ae208dc380808ff1aef39929a0e897e881571d43.zip | |
refactor: standardize constructors and improve inheritance construction
Diffstat (limited to 'tests/mason-core/installer/handle_spec.lua')
| -rw-r--r-- | tests/mason-core/installer/handle_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/mason-core/installer/handle_spec.lua b/tests/mason-core/installer/handle_spec.lua index 66a9a5c4..780b1cc7 100644 --- a/tests/mason-core/installer/handle_spec.lua +++ b/tests/mason-core/installer/handle_spec.lua @@ -15,7 +15,7 @@ describe("installer handle", function() end) it("should register spawn handle", function() - local handle = InstallHandle.new(mock.new {}) + local handle = InstallHandle:new(mock.new {}) local spawn_handle_change_handler = spy.new() local luv_handle = mock.new {} @@ -32,7 +32,7 @@ describe("installer handle", function() end) it("should deregister spawn handle", function() - local handle = InstallHandle.new(mock.new {}) + local handle = InstallHandle:new(mock.new {}) local spawn_handle_change_handler = spy.new() local luv_handle1 = mock.new {} local luv_handle2 = mock.new {} @@ -53,7 +53,7 @@ describe("installer handle", function() end) it("should change state", function() - local handle = InstallHandle.new(mock.new {}) + local handle = InstallHandle:new(mock.new {}) local state_change_handler = spy.new() handle:once("state:change", state_change_handler) @@ -68,7 +68,7 @@ describe("installer handle", function() local process = require "mason-core.process" stub(process, "kill") local uv_handle = {} - local handle = InstallHandle.new(mock.new {}) + local handle = InstallHandle:new(mock.new {}) local kill_handler = spy.new() handle:once("kill", kill_handler) @@ -87,7 +87,7 @@ describe("installer handle", function() stub(process, "kill") local uv_handle1 = {} local uv_handle2 = {} - local handle = InstallHandle.new(mock.new {}) + local handle = InstallHandle:new(mock.new {}) local kill_handler = spy.new() local terminate_handler = spy.new() local closed_handler = spy.new() |
