From 9a5420ec3506be11407d44d2a0ed390183f7507e Mon Sep 17 00:00:00 2001 From: 11poe <404johnnydoe@gmail.com> Date: Sat, 16 Nov 2024 19:28:58 +0000 Subject: [PATCH] Fix new create syntax test --- test/tests.luau | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/tests.luau b/test/tests.luau index 704b702..8f30a82 100644 --- a/test/tests.luau +++ b/test/tests.luau @@ -722,20 +722,16 @@ TEST("create()", wrap_root(function() local cleanup = vide.cleanup do CASE "create(\"ClassName\", props) syntax" - local frame = create("Frame", { BackgroundTransparency = 0.5, Size = UDim2.fromScale(1, 1) }) - CHECK(typeof(frame) == "Instance") - CHECK(frame:IsA("Frame")) + local frame = create("Frame", { BackgroundTransparency = 0.5, Name = "Foo" }) CHECK(frame.BackgroundTransparency == 0.5) - CHECK(frame.Size == UDim2.fromScale(1, 1)) + CHECK(frame.Name == "Foo") end do CASE "create(Instance, props) syntax" - local frame0 = create("Frame", { BackgroundTransparency = 0.5, Size = UDim2.fromScale(1, 1) }) + local frame0 = create("Frame", { BackgroundTransparency = 0.5, Name = "Foo" }) local frame = create(frame0, { BackgroundTransparency = 1 }) - CHECK(typeof(frame) == "Instance") - CHECK(frame:IsA("Frame")) CHECK(frame.BackgroundTransparency == 1) - CHECK(frame.Size == UDim2.fromScale(1, 1)) + CHECK(frame.Name == "Foo") end do CASE "apply default properties"