mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 11:44:08 +00:00
refactor: improve logic
This commit is contained in:
parent
210e948225
commit
72f936591e
48 changed files with 434 additions and 349 deletions
|
|
@ -2,20 +2,22 @@ local ServerScriptService = game:GetService("ServerScriptService")
|
|||
|
||||
local suite = require(ServerScriptService.Tests.suite)
|
||||
|
||||
local describe = suite.describe
|
||||
|
||||
local function spec(name: string)
|
||||
describe(name, function()
|
||||
return require(`./{name}.spec`) :: any
|
||||
suite.describe("charm-sync", function()
|
||||
suite.describe("client", function()
|
||||
require("./client.spec")
|
||||
end)
|
||||
suite.describe("server", function()
|
||||
require("./server.spec")
|
||||
end)
|
||||
suite.describe("flatten", function()
|
||||
require("./flatten.spec")
|
||||
end)
|
||||
suite.describe("patch", function()
|
||||
require("./patch.spec")
|
||||
end)
|
||||
suite.describe("validate", function()
|
||||
require("./validate.spec")
|
||||
end)
|
||||
end
|
||||
|
||||
describe("charm-sync", function()
|
||||
spec("client")
|
||||
spec("server")
|
||||
spec("flatten")
|
||||
spec("patch")
|
||||
spec("validate")
|
||||
end)
|
||||
|
||||
return {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue