lune/tests/roblox/instance/datamodel.luau
2023-03-26 09:38:59 +02:00

24 lines
620 B
Lua

local roblox = require("@lune/roblox") :: any
local Instance = roblox.Instance
local game = Instance.new("DataModel")
assert(game:FindService("Workspace") == nil)
assert(game:GetService("Workspace") ~= nil)
assert(game:FindService("Workspace") ~= nil)
assert(game:FindService("CSGDictionaryService") == nil)
assert(game:GetService("CSGDictionaryService") ~= nil)
assert(game:FindService("CSGDictionaryService") ~= nil)
assert(not pcall(function()
game:GetService("wrorokspacey")
end))
assert(not pcall(function()
game:GetService("work-space")
end))
assert(not pcall(function()
game:GetService("workspac")
end))