Skip to content

Commit

Permalink
Component
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleitnick committed Dec 10, 2024
1 parent eeb977d commit 035f5c0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 212 deletions.
4 changes: 2 additions & 2 deletions ci/Test.luau
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ function Test.run(ancestors: { Instance })

out("---------")
out(`{totalTests} Total`)
out(`{totalSuccesses} Pass`)
out(`{totalFails} Fail{if totalFails == 1 then "" else "s"}`)
out(`{totalSuccesses} Passed`)
out(`{totalFails} Failed`)
out("---------")

local tab = " "
Expand Down
12 changes: 6 additions & 6 deletions modules/component/init.test.luau
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,16 @@ return function(ctx: Test.TestContext)
taggedInstanceFolder.Parent = workspace
end)

ctx:AfterEach(function()
taggedInstanceFolder:ClearAllChildren()
end)

ctx:AfterAll(function()
taggedInstanceFolder:Destroy()
TestComponentMain:Destroy()
end)

ctx:Describe("Component", function()
ctx:AfterEach(function()
taggedInstanceFolder:ClearAllChildren()
end)

ctx:Test("should capture start and stop events", function()
local didStart = 0
local didStop = 0
Expand Down Expand Up @@ -135,8 +135,8 @@ return function(ctx: Test.TestContext)
task.wait()
local components = TestComponentMain:GetAll()
ctx:Expect(components):ToBeA("table")
ctx:Expect(#components):ToBe(numComponents)
for _, c in ipairs(components) do
ctx:Expect(components):ToHaveLength(numComponents)
for _, c in components do
ctx:Expect(table.find(instances, c.Instance)):ToBeOk()
end
end)
Expand Down
2 changes: 1 addition & 1 deletion modules/shake/init.test.luau
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ return function(ctx: Test.TestContext)
"Sustain",
"PositionInfluence",
"RotationInfluence",
"TimeFunction",
}
for _, field in clonedFields do
ctx:Expect(shake1[field]):ToBe(shake2[field])
end
ctx:Expect(shake1.TimeFunction == shake2.TimeFunction):ToBe(true)
end)

ctx:Test("should clone a shake instance but ignore running state", function()
Expand Down
137 changes: 0 additions & 137 deletions modules/streamable/Streamable.spec.luau

This file was deleted.

60 changes: 0 additions & 60 deletions modules/streamable/StreamableUtil.spec.luau

This file was deleted.

7 changes: 1 addition & 6 deletions test/wally.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
# It is not intended for manual editing.
registry = "test"

[[package]]
name = "roblox/testez"
version = "0.4.1"
dependencies = []

[[package]]
name = "sleit/rbxutil"
version = "0.1.0"
dependencies = [["TestEZ", "roblox/[email protected]"]]
dependencies = []

0 comments on commit 035f5c0

Please sign in to comment.