Skip to content

Commit

Permalink
Create basis of chainlink tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Crystalflxme committed Apr 8, 2024
1 parent 4c74d27 commit f180de1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
Empty file added tests/Assets/.gitkeep
Empty file.
File renamed without changes.
27 changes: 27 additions & 0 deletions tests/ChainLinkFunctionality.server.luau
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ChainLink = require(ReplicatedStorage.Packages.ChainLink)

local map = Instance.new("Folder")
map.Name = "Map"

for _, asset in script.Parent:WaitForChild("Assets"):GetChildren() do
if not string.match(asset.Name, "After_") then
asset.Parent = map
end
end

map.Parent = workspace

ChainLink.RegisterDefaultActions()
ChainLink.SetMapDirectory(function()
return map
end)
ChainLink.Init()

-- TODO: Test here

for _, asset in script.Parent:WaitForChild("Assets"):GetChildren() do
asset.Parent = map
end

-- TODO: Test here

0 comments on commit f180de1

Please sign in to comment.