fix(tests): TypeError in basic stringify tests

This commit is contained in:
Erica Marigold 2024-11-22 05:57:30 +00:00
parent 12cad2ff0b
commit 943136bb28
Signed by: DevComp
GPG key ID: 429EF1C337871656

View file

@ -48,7 +48,10 @@ return function()
}, },
} }
for expectedString, version in versionMap do -- FIXME: unknown usage here is because these types are too complex for
-- Luau to typecheck properly, we cast it manually since the above
-- map is typed properly anyway
for expectedString, version: unknown in versionMap do
local constructed = Semver.new(version :: Semver.Version) local constructed = Semver.new(version :: Semver.Version)
local stringified = tostring(constructed) local stringified = tostring(constructed)