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/receipt_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/receipt_spec.lua')
| -rw-r--r-- | tests/mason-core/receipt_spec.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/mason-core/receipt_spec.lua b/tests/mason-core/receipt_spec.lua index 05ce1439..e7fcd648 100644 --- a/tests/mason-core/receipt_spec.lua +++ b/tests/mason-core/receipt_spec.lua @@ -7,7 +7,7 @@ end describe("receipt ::", function() it("should parse 1.0 structures", function() - local receipt = InstallReceipt.new(fixture "1.0.json") + local receipt = InstallReceipt:new(fixture "1.0.json") assert.equals("angular-language-server", receipt:get_name()) assert.equals("1.0", receipt:get_schema_version()) @@ -21,7 +21,7 @@ describe("receipt ::", function() end) it("should parse 1.1 structures", function() - local receipt = InstallReceipt.new(fixture "1.1.json") + local receipt = InstallReceipt:new(fixture "1.1.json") assert.equals("angular-language-server", receipt:get_name()) assert.equals("1.1", receipt:get_schema_version()) @@ -46,7 +46,7 @@ describe("receipt ::", function() end) it("should parse 1.2 structures", function() - local receipt = InstallReceipt.new(fixture "1.2.json") + local receipt = InstallReceipt:new(fixture "1.2.json") assert.equals("angular-language-server", receipt:get_name()) assert.equals("1.2", receipt:get_schema_version()) @@ -66,9 +66,9 @@ describe("receipt ::", function() describe("schema versions ::", function() it("should check minimum compatibility", function() - local receipt_1_0 = InstallReceipt.new { schema_version = "1.0" } - local receipt_1_1 = InstallReceipt.new { schema_version = "1.1" } - local receipt_1_2 = InstallReceipt.new { schema_version = "1.2" } + local receipt_1_0 = InstallReceipt:new { schema_version = "1.0" } + local receipt_1_1 = InstallReceipt:new { schema_version = "1.1" } + local receipt_1_2 = InstallReceipt:new { schema_version = "1.2" } assert.is_true(receipt_1_0:is_schema_min "1.0") assert.is_true(receipt_1_1:is_schema_min "1.0") |
