@quenty/binder 14.18.2 → 14.19.0-canary.544.de8fcee.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -2
- package/package.json +12 -12
- package/src/Shared/BinderProvider.spec.lua +28 -24
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [14.19.0-canary.544.de8fcee.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@14.18.1...@quenty/binder@14.19.0-canary.544.de8fcee.0) (2025-04-01)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix existing tests ([655787c](https://github.com/Quenty/NevermoreEngine/commit/655787ced1139136e12f81800e229aa076731561))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/binder",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.19.0-canary.544.de8fcee.0",
|
|
4
4
|
"description": "Utility object to Bind a class to Roblox object, and associated helper methods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/baseobject": "
|
|
29
|
-
"@quenty/brio": "
|
|
30
|
-
"@quenty/instanceutils": "
|
|
31
|
-
"@quenty/linkutils": "
|
|
32
|
-
"@quenty/loader": "
|
|
33
|
-
"@quenty/maid": "
|
|
34
|
-
"@quenty/promise": "
|
|
35
|
-
"@quenty/rx": "
|
|
36
|
-
"@quenty/signal": "
|
|
37
|
-
"@quenty/valueobject": "
|
|
28
|
+
"@quenty/baseobject": "10.8.0",
|
|
29
|
+
"@quenty/brio": "14.17.0-canary.544.de8fcee.0",
|
|
30
|
+
"@quenty/instanceutils": "13.17.0-canary.544.de8fcee.0",
|
|
31
|
+
"@quenty/linkutils": "13.17.0-canary.544.de8fcee.0",
|
|
32
|
+
"@quenty/loader": "10.8.0",
|
|
33
|
+
"@quenty/maid": "3.4.0",
|
|
34
|
+
"@quenty/promise": "10.10.1",
|
|
35
|
+
"@quenty/rx": "13.17.0-canary.544.de8fcee.0",
|
|
36
|
+
"@quenty/signal": "7.10.0",
|
|
37
|
+
"@quenty/valueobject": "13.17.0-canary.544.de8fcee.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "de8fcee995fcdae464964357b4c770c03f4c7e03"
|
|
43
43
|
}
|
|
@@ -4,38 +4,42 @@
|
|
|
4
4
|
|
|
5
5
|
local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
|
|
6
6
|
|
|
7
|
-
local BinderProvider = require("BinderProvider")
|
|
8
7
|
local Binder = require("Binder")
|
|
8
|
+
local BinderProvider = require("BinderProvider")
|
|
9
|
+
local Jest = require("Jest")
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
local initialized = false
|
|
11
|
+
local describe = Jest.Globals.describe
|
|
12
|
+
local expect = Jest.Globals.expect
|
|
13
|
+
local it = Jest.Globals.it
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
assert(arg == 12345, "Bad arg")
|
|
15
|
+
describe("BinderProvider.new()", function()
|
|
16
|
+
local provider
|
|
17
|
+
local initialized = false
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
it("should execute immediately", function()
|
|
20
|
+
provider = BinderProvider.new("BinderServiceName", function(self, arg)
|
|
21
|
+
initialized = true
|
|
22
|
+
assert(arg == 12345, "Bad arg")
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
self:Add(Binder.new("Test", function()
|
|
25
|
+
return { Destroy = function() end; }
|
|
26
|
+
end))
|
|
26
27
|
end)
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
provider:Init(12345)
|
|
31
|
-
expect(initialized).to.equal(true)
|
|
32
|
-
end)
|
|
29
|
+
expect(provider).toEqual(expect.any("table"))
|
|
30
|
+
end)
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
it("should initialize", function()
|
|
33
|
+
expect(initialized).toEqual(false)
|
|
34
|
+
provider:Init(12345)
|
|
35
|
+
expect(initialized).toEqual(true)
|
|
36
|
+
end)
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
it("should contain the binder", function()
|
|
39
|
+
expect(provider.Test).toEqual(expect.any("table"))
|
|
39
40
|
end)
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
if provider then
|
|
43
|
+
provider:Destroy()
|
|
44
|
+
end
|
|
45
|
+
end)
|